|
@@ -38,7 +38,16 @@ public class KuaishouCommentAutoDelete implements Job {
|
|
log.info("正在删除评论:{}", account.getAccountName());
|
|
log.info("正在删除评论:{}", account.getAccountName());
|
|
kuaishouWebInterfaceService.adkuaishouWebLogin(account.getAccountName(), account.getPassword());
|
|
kuaishouWebInterfaceService.adkuaishouWebLogin(account.getAccountName(), account.getPassword());
|
|
kuaishouWebInterfaceService.deleteAllComment(new HashMap<>());
|
|
kuaishouWebInterfaceService.deleteAllComment(new HashMap<>());
|
|
- Runtime.getRuntime().exec(cleanUrl);
|
|
|
|
|
|
+ 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(10000);
|
|
Thread.sleep(10000);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|