kaijia месяцев назад: 6
Родитель
Сommit
1bc883ff46

+ 1 - 38
app/src/main/java/com/kuxuan/autoclick/service/AddGroup.kt

@@ -723,7 +723,7 @@ fun retry(taskBean: TaskBean, builder: StringBuilder, serialNumber: Int, peopleN
723 723
                             return
724 724
                         }
725 725
                     } else {
726
-                        LogUtil.e(tag + "该字符串不是数字!!")
726
+                        LogUtil.e(tag + "该字符串不是数字!!" + allPeople.text.toString())
727 727
                         continue
728 728
                     }
729 729
                 } else {
@@ -767,43 +767,6 @@ fun retry(taskBean: TaskBean, builder: StringBuilder, serialNumber: Int, peopleN
767 767
                     }
768 768
                 }
769 769
             }
770
-//            if (WeworkController.weworkService.testNameList.size > 0) {
771
-//                LogUtil.e(tag + "有剩余人数 人群池 " + WeworkController.weworkService.testNameList.size)
772
-//                if (owner_type == 2) {
773
-//                    number = number + 1
774
-//                }
775
-//                LogUtil.e(tag + "判断 number:" + number + " 群限制数量: " + Constant.GROUP_PERSON_NUMBER)
776
-//                if (number < Constant.GROUP_PERSON_NUMBER) {
777
-//                    LogUtil.e(tag + "群人数不满 继续点全部群成员拉人拉人")
778
-//                    threePoint1(taskBean, 0, "", serialNumber, false)
779
-//                } else {
780
-//                    LogUtil.e(tag + "群人数已满 继续新群创建")
781
-//                }
782
-//            } else {
783
-//                LogUtil.e(tag + "此时没有剩余人数可用!!")
784
-//                //如果群数量没有满足
785
-//                if (serialNumber < Constant.maxGroups) {
786
-//                    LogUtil.e(tag + "群数量(${Constant.maxGroups})没有满足,当前是:$serialNumber")
787
-//                    Constant.retry++
788
-//                    if (Constant.retry < 6) {
789
-//                        var peopleNumber = Constant.GROUP_PERSON_NUMBER - 1
790
-//                        LogUtil.e(tag + "重新获取粉丝列表第 ${Constant.retry} 次!")
791
-//                        var needPeopleNumber = totalPerson - (number + (serialNumber - number) * (Constant.GROUP_PERSON_NUMBER - 1))
792
-//                        retryNet(taskBean, Constant.retry, Constant.corpid, needPeopleNumber, 2, peopleNameList, serialNumber, peopleNumber, companyname)
793
-//                    } else {
794
-//                        LogUtil.e(tag + "已经重新获取粉丝列表5次了!")
795
-//                        //返回首页
796
-//                        LogUtil.e(tag + "返回首页")
797
-//                        returnHome(taskBean, 0)
798
-//                        if (Constant.retry == 5) {
799
-//                            if (WeworkController.weworkService.testNameList.size <= 0) {
800
-//                                LogUtil.e(tag + "粉丝已经用尽了,提前结束,不再建群")
801
-//                                return
802
-//                            }
803
-//                        }
804
-//                    }
805
-//                }
806
-//            }//清燕 没有创建成功
807 770
         } else {
808 771
             LogUtil.e(tag + "allPeoples 为空了")
809 772
             var number = 1;

+ 1 - 1
app/src/main/java/com/kuxuan/autoclick/service/FloatingWindowService.java

@@ -58,7 +58,7 @@ public class FloatingWindowService extends Service {
58 58
 
59 59
     @Override
60 60
     public boolean onUnbind(Intent intent) {
61
-        LogUtil.e("接触绑定服务! ");
61
+        LogUtil.e("解除绑定服务! ");
62 62
         return super.onUnbind(intent);
63 63
     }
64 64
 

+ 1 - 1
app/src/main/java/com/kuxuan/autoclick/service/GlobalMethod.kt

@@ -129,7 +129,7 @@ fun getRoot(): AccessibilityNodeInfo {
129 129
  */
130 130
 fun getRoot(ignoreCheck: Boolean): AccessibilityNodeInfo {
131 131
     while (true) {
132
-        sleep(Constant.CHANGE_PAGE_INTERVAL, 1)
132
+        sleep(Constant.CHANGE_PAGE_INTERVAL - 2000, 1)
133 133
         var root = weworkService.rootInActiveWindow
134 134
         for (window in weworkService.windows) {
135 135
             if (window.root != null) {

+ 8 - 2
app/src/main/java/com/kuxuan/autoclick/service/GroupSendImpl.kt

@@ -410,7 +410,7 @@ fun findNodeInfo4(companyBean: CompanyBean, taskBean: TaskBean, count: Int) {
410 410
                     LogUtil.e("点击了:" + companyBean.companyName)
411 411
                     //这里 做一个不同客服名的兼容 再打开侧边栏检测一次 当前用户是谁
412 412
 //                    LogUtil.e("右划 再打开侧边栏检测一次 当前用户是谁")
413
-                    sleep(NumberUtils.getRandom1000())
413
+                    sleep(NumberUtils.getRandom1000() - 1000)
414 414
 //                    AccessibilityUtil.scrollByXY(weworkService, 100, 1000, 400, 0)
415 415
 //                    sleep(NumberUtils.getRandom1000())
416 416
                     getCurrUserName(companyBean)
@@ -613,7 +613,6 @@ fun toWorkPlate(clickName: String, taskBean: TaskBean, count: Int): Boolean {
613 613
     val workPlates = AccessibilityUtil.findAllByClazz(getRootCopy(taskBean), Views.TextView)
614 614
     for (workPlate in workPlates) {
615 615
         if (!TextUtils.isEmpty(workPlate.text)) {
616
-            LogUtil.e("打印所有 的text 节点: " + workPlate.text)
617 616
             if (workPlate.text.equals(clickName)) {
618 617
                 AccessibilityUtil.performClick(workPlate)
619 618
                 LogUtil.e("切换到了 $clickName")
@@ -622,6 +621,13 @@ fun toWorkPlate(clickName: String, taskBean: TaskBean, count: Int): Boolean {
622 621
             }
623 622
         }
624 623
     }
624
+    if (!success){
625
+        for (workPlate in workPlates) {
626
+            if (!TextUtils.isEmpty(workPlate.text)) {
627
+                LogUtil.e("打印所有 的text 节点: " + workPlate.text)
628
+            }
629
+        }
630
+    }
625 631
     return success
626 632
 }
627 633