|
@@ -39,6 +39,15 @@ public class KuaishouCommentAutoDelete implements Job {
|
|
|
loginList.forEach(login -> executorService.submit(()->{
|
|
|
try {
|
|
|
kuaishouWebInterfaceService.deleteAllComment(new HashMap<>(),login);
|
|
|
+ Runtime runtime = Runtime.getRuntime();
|
|
|
+ Process pro = runtime.exec(cleanUrl);
|
|
|
+ int status = pro.waitFor();
|
|
|
+ if (status == 0) {
|
|
|
+ log.info("success,删除评论调用shell脚本执行成功");
|
|
|
+ } else {
|
|
|
+ log.info("error,删除评论调用shell脚本执行失败");
|
|
|
+ }
|
|
|
+ Thread.sleep(3 * 1000L);
|
|
|
}catch (Exception e){
|
|
|
log.error(e.getMessage(),e);
|
|
|
}finally {
|