fix:评论

上级 c8669805
......@@ -36,9 +36,13 @@ public class CsdnSchedule {
log.info("execute task is finish ... ...");
}
/**
* 当天可能有新的发布
*/
@Scheduled(cron = "0 0/30 0 * * ?")
public void executeReply() {
log.info("executeReply task is running ... ...");
csdnCommentService.commentSelf();
log.info("executeReply task is finish ... ...");
}
@Scheduled(cron = "0 0/30 * * * ?")
public void executeInit() {
log.info("executeInit task is running ... ...");
......@@ -55,12 +59,5 @@ public class CsdnSchedule {
}
log.info("executeInit task is finish ... ...");
}
@Scheduled(cron = "0 0 8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * ?")
public void executeReply() {
log.info("executeReply task is running ... ...");
csdnCommentService.commentSelf();
log.info("executeReply task is finish ... ...");
}
}
......@@ -139,7 +139,6 @@ public class CsdnCommentServiceImpl implements CsdnCommentService {
.header("Cookie", csdnCookie)
.form("page", 1)
.form("size", 100)
.form("fold", "unfold")
.execute();
final String body = response.body();
ObjectMapper objectMapper = new ObjectMapper();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册