|
@@ -9,12 +9,15 @@ import org.quartz.Job;
|
|
import org.quartz.JobExecutionContext;
|
|
import org.quartz.JobExecutionContext;
|
|
import org.quartz.JobExecutionException;
|
|
import org.quartz.JobExecutionException;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@Slf4j
|
|
@Slf4j
|
|
public class KuaishouCommentAutoDelete implements Job {
|
|
public class KuaishouCommentAutoDelete implements Job {
|
|
|
|
+ @Value("${chrome.script.clean}")
|
|
|
|
+ private String cleanUrl;
|
|
@Autowired
|
|
@Autowired
|
|
private IKuaishouWebInterfaceService kuaishouWebInterfaceService;
|
|
private IKuaishouWebInterfaceService kuaishouWebInterfaceService;
|
|
@Autowired
|
|
@Autowired
|
|
@@ -35,6 +38,7 @@ 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);
|
|
Thread.sleep(10000);
|
|
Thread.sleep(10000);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|