wangkun 2 yıl önce
ebeveyn
işleme
8800a0bb03

+ 2 - 2
scheduling/scheduling_main/crawler_scheduling.py

@@ -39,10 +39,10 @@ class Scheduling:
             for pre_task in pre_task_list:
                 if machine == "hk":
                     # 写入 redis
-                    pass
+                    RedisHelper.redis_push(env, machine,str(pre_task))
                 elif machine == "aliyun":
                     # 写入 redis
-                    pass
+                    RedisHelper.redis_push(env, machine,str(pre_task))
                 else:
                     # 写入 redis
                     RedisHelper.redis_push(env, machine,str(pre_task))

+ 3 - 3
weixinzhishu/weixinzhishu_main/search_key_mac.py

@@ -2,20 +2,20 @@
 # @Author: wangkun
 # @Time: 2023/2/20
 import time
-
 import atomac
 
 
 class SearchKey:
     @classmethod
     def start_wechat(cls):
+        # 启动应用并获取应用信息
         bundle_id = "com.tencent.xinWeChat"
         atomac.launchAppByBundleId(bundle_id)
         automator = atomac.getAppRefByBundleId(bundle_id)
         time.sleep(3)
-
+        # 获取当前应用window
         window = automator.windows()[0]
-
+        print(f"当前应用window:{window}")
         msg_box = window.findFirstR(AXRole="AXCell", AXIdentifier="MMChatsTableCellView_0")
         print(msg_box.getAttributes())