Explorar o código

修改自动删评论代码

syh %!s(int64=5) %!d(string=hai) anos
pai
achega
af1bceb2c1

+ 4 - 4
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/graphql/service/impl/KuaishouWebInterfaceServiceImpl.java

@@ -611,9 +611,9 @@ public class KuaishouWebInterfaceServiceImpl implements IKuaishouWebInterfaceSer
             //等待2秒用于页面加载,保证Cookie响应全部获取。
             Thread.sleep(10000);
 
-            WebElement iframeElement = webDriver.findElement(By.tagName("iframe"));
-            if (iframeElement != null) {
-                log.error("【错误】快手登录出现验证码!");
+//            WebElement iframeElement = webDriver.findElement(By.tagName("iframe"));
+//            if (iframeElement != null) {
+//                log.error("【错误】快手登录出现验证码!");
 //                File scrFile = captureElement(webDriver.findElement(By.tagName("iframe")));
 //                //clickCharBg
 //                String savePath = "D:/capter.png";
@@ -622,7 +622,7 @@ public class KuaishouWebInterfaceServiceImpl implements IKuaishouWebInterfaceSer
 //                String result = ChaojiyingUtils.process(Base64Utils.imageToBase64(savePath));
 //                System.out.println(result);
 //                ((JavascriptExecutor) webDriver).executeScript("arguments[0].click();", webDriver.findElement(By.className("aq_icon_refresh")));
-            }
+//            }
             webDriver.get("https://b.e.kuaishou.com/#/home/profile");
             //获取Cookie并打印
             Set<org.openqa.selenium.Cookie> cookies = webDriver.manage().getCookies();