yumeng 4 éve
szülő
commit
bedd0740a4

+ 9 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouCommentAutoDelete.java

@@ -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 {