| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- 2026-04-23 09:54:25,886 - INFO - PDD 调度器启动,轮询间隔 600 秒
- 2026-04-23 09:54:26,155 - INFO - [任务 872] 开始执行,设备: UCQGF6CQFMU8WKHI
- 2026-04-23 09:54:26,156 - INFO - {'task_id': 872, 'equipment_id': 7, 'enterprise_id': 6, 'platform': '3', 'title_key': '双黄连口服液', 'spec_list': '10ml', 'brand': '太龙', 'search_key': '太龙双黄连口服液', 'save_search_key': '太龙双黄连口服液', 'start_page': 1, 'end_page': 1, 'max_counts_limit': 1000, 'sort': '升序', 'device_id': 'UCQGF6CQFMU8WKHI', 'task_row': (872, 1030, 7, 6, '3', '双黄连口服液', '10ml', '太龙', '', 1, 1, 1000, 6000, 0, 600, 1776909002, 1776909002, 1)}
- 2026-04-23 09:54:26,156 - INFO - [任务 872] 已分发到设备 UCQGF6CQFMU8WKHI
- 2026-04-23 09:54:26,158 - INFO - [任务 873] 开始执行,设备: 369dcf96
- 2026-04-23 09:54:26,158 - INFO - {'task_id': 873, 'equipment_id': 8, 'enterprise_id': 6, 'platform': '3', 'title_key': '乳酸菌素片', 'spec_list': '1.2g', 'brand': '江中', 'search_key': '江中乳酸菌素片', 'save_search_key': '江中乳酸菌素片', 'start_page': 1, 'end_page': 1, 'max_counts_limit': 1000, 'sort': '升序', 'device_id': '369dcf96', 'task_row': (873, 909, 8, 6, '3', '乳酸菌素片', '1.2g', '江中', '', 1, 1, 1000, 6000, 0, 600, 1776909002, 1776909002, 1)}
- 2026-04-23 09:54:26,158 - INFO - [任务 873] 已分发到设备 369dcf96
- 2026-04-23 09:54:36,624 - INFO - 369dcf96 连接错误: device 369dcf96 not online
- 2026-04-23 09:54:36,624 - INFO - 任务执行异常: device 369dcf96 not online
- 2026-04-23 09:54:36,625 - ERROR - [任务 873] 执行异常,设备: 369dcf96,错误: device 369dcf96 not online
- Traceback (most recent call last):
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 1232, in connect_devices
- self.d = u2.connect_usb(device_id)
- ~~~~~~~~~~~~~~^^^^^^^^^^^
- File "C:\Users\datai\Desktop\Auto\.venv\Lib\site-packages\uiautomator2\__init__.py", line 963, in connect_usb
- return Device(serial)
- File "C:\Users\datai\Desktop\Auto\.venv\Lib\site-packages\uiautomator2\base.py", line 36, in __init__
- self._dev = self._wait_for_device()
- ~~~~~~~~~~~~~~~~~~~~~^^
- File "C:\Users\datai\Desktop\Auto\.venv\Lib\site-packages\uiautomator2\base.py", line 79, in _wait_for_device
- raise ConnectError(f"device {self._serial} not online")
- uiautomator2.exceptions.ConnectError: device 369dcf96 not online
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 247, in run_task_worker
- completed_normally = pdd.main(device_id, 1, 0)
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 1792, in main
- self.connect_devices(device_id)
- ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 1240, in connect_devices
- raise Exception(e)
- Exception: device 369dcf96 not online
- 2026-04-23 09:54:36,654 - INFO - UCQGF6CQFMU8WKHI 连接错误: device UCQGF6CQFMU8WKHI not online
- 2026-04-23 09:54:36,654 - INFO - 任务执行异常: device UCQGF6CQFMU8WKHI not online
- 2026-04-23 09:54:36,654 - ERROR - [任务 872] 执行异常,设备: UCQGF6CQFMU8WKHI,错误: device UCQGF6CQFMU8WKHI not online
- Traceback (most recent call last):
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 1232, in connect_devices
- self.d = u2.connect_usb(device_id)
- ~~~~~~~~~~~~~~^^^^^^^^^^^
- File "C:\Users\datai\Desktop\Auto\.venv\Lib\site-packages\uiautomator2\__init__.py", line 963, in connect_usb
- return Device(serial)
- File "C:\Users\datai\Desktop\Auto\.venv\Lib\site-packages\uiautomator2\base.py", line 36, in __init__
- self._dev = self._wait_for_device()
- ~~~~~~~~~~~~~~~~~~~~~^^
- File "C:\Users\datai\Desktop\Auto\.venv\Lib\site-packages\uiautomator2\base.py", line 79, in _wait_for_device
- raise ConnectError(f"device {self._serial} not online")
- uiautomator2.exceptions.ConnectError: device UCQGF6CQFMU8WKHI not online
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 247, in run_task_worker
- completed_normally = pdd.main(device_id, 1, 0)
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 1792, in main
- self.connect_devices(device_id)
- ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 1240, in connect_devices
- raise Exception(e)
- Exception: device UCQGF6CQFMU8WKHI not online
- 2026-04-23 11:21:28,727 - INFO - [2026-04-23 11:21:23]连接到设备:2e58510
- 2026-04-23 11:21:34,991 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 11:21:34,991 - INFO - pdd is in foreground, reuse app without restart
- 2026-04-23 11:21:38,604 - INFO - search input not found, fallback to enter_target_page
- 2026-04-23 11:26:06,005 - INFO - [2026-04-23 11:26:01]连接到设备:2e58510
- 2026-04-23 11:26:12,554 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 11:26:12,555 - INFO - pdd is in foreground, reuse app without restart
- 2026-04-23 11:26:16,505 - INFO - search input not found after swipe, fallback to enter_target_page
- 2026-04-23 11:28:41,868 - INFO - [2026-04-23 11:28:36]连接到设备:2e58510
- 2026-04-23 11:28:48,149 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 11:28:48,149 - INFO - pdd is in foreground, reuse app without restart
- 2026-04-23 11:28:52,187 - INFO - search input not found after swipe, fallback to enter_target_page
- 2026-04-23 11:30:51,307 - INFO - [2026-04-23 11:30:47]连接到设备:2e58510
- 2026-04-23 11:34:37,009 - INFO - [2026-04-23 11:34:33]连接到设备:2e58510
- 2026-04-23 11:34:43,315 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 11:34:43,315 - INFO - pdd is in foreground, reuse app without restart
- 2026-04-23 17:16:18,714 - INFO - PDD 调度器启动,轮询间隔 600 秒
- 2026-04-23 17:16:18,715 - INFO - 手动任务模式启用,跳过数据库任务分配
- 2026-04-23 17:16:18,715 - INFO - 手动任务模式启用,本轮分发 3 条任务
- 2026-04-23 17:16:18,716 - INFO - [任务 900001] 开始执行,设备: e2899b34
- 2026-04-23 17:16:18,716 - INFO - [任务 900001] 已分发到设备 e2899b34
- 2026-04-23 17:16:18,717 - INFO - {'task_id': 900001, 'equipment_id': 'manual', 'enterprise_id': 0, 'platform': 3, 'title_key': '骨通贴膏', 'spec_list': ['7cm*10cm*6'], 'brand': '天和', 'search_key': '骨通贴膏', 'save_search_key': '骨通贴膏', 'start_page': 0, 'end_page': 200, 'max_counts_limit': 300, 'sort': '升序', 'device_id': 'e2899b34', 'task_row': None, 'direct_shop_lookup': False}
- 2026-04-23 17:16:18,717 - INFO - [任务 900002] 开始执行,设备: fcb3c749
- 2026-04-23 17:16:18,717 - INFO - [任务 900002] 已分发到设备 fcb3c749
- 2026-04-23 17:16:18,718 - INFO - {'task_id': 900002, 'equipment_id': 'manual', 'enterprise_id': 0, 'platform': 3, 'title_key': '骨通贴膏', 'spec_list': ['8cm*13cm*6'], 'brand': '天和', 'search_key': '骨通贴膏', 'save_search_key': '骨通贴膏', 'start_page': 0, 'end_page': 200, 'max_counts_limit': 300, 'sort': '升序', 'device_id': 'fcb3c749', 'task_row': None, 'direct_shop_lookup': False}
- 2026-04-23 17:16:18,718 - INFO - [任务 900003] 开始执行,设备: 2e58510
- 2026-04-23 17:16:18,719 - INFO - [任务 900003] 已分发到设备 2e58510
- 2026-04-23 17:16:18,719 - INFO - {'task_id': 900003, 'equipment_id': 'manual', 'enterprise_id': 0, 'platform': 3, 'title_key': '骨通贴膏', 'spec_list': ['8cm*13cm*10'], 'brand': '天和', 'search_key': '骨通贴膏', 'save_search_key': '骨通贴膏', 'start_page': 0, 'end_page': 200, 'max_counts_limit': 300, 'sort': '升序', 'device_id': '2e58510', 'task_row': None, 'direct_shop_lookup': False}
- 2026-04-23 17:16:23,607 - INFO - [2026-04-23 17:16:18]连接到设备:e2899b34
- 2026-04-23 17:16:25,065 - INFO - [2026-04-23 17:16:18]连接到设备:2e58510
- 2026-04-23 17:16:25,212 - INFO - [2026-04-23 17:16:18]连接到设备:fcb3c749
- 2026-04-23 17:16:27,917 - INFO - current foreground package: com.miui.home
- 2026-04-23 17:16:27,917 - INFO - 当前不在拼多多前台,先重启APP
- 2026-04-23 17:16:30,978 - INFO - current foreground package: com.miui.home
- 2026-04-23 17:16:30,978 - INFO - 当前不在拼多多前台,先重启APP
- 2026-04-23 17:16:36,250 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 17:16:36,250 - INFO - pdd is in foreground, reuse app without restart
- 2026-04-23 17:16:52,682 - INFO - 手动任务模式:跳过接口上报 task_id=900003, start=2, page=0, end_page=None, finish_status=0
- 2026-04-23 17:16:52,682 - INFO - 第0页
- 2026-04-23 17:16:52,832 - INFO - 数量 6
- 2026-04-23 17:16:52,833 - INFO - 1 {'index': 4, 'text': '', 'resourceId': '', 'checkable': False, 'checked': False, 'clickable': False, 'enabled': True, 'focusable': False, 'focused': False, 'scrollable': False, 'longClickable': False, 'password': False, 'selected': False, 'visibleToUser': True, 'drawingOrder': '5', 'hint': '', 'displayId': '0', 'childCount': 1, 'className': 'android.widget.FrameLayout', 'bounds': {'left': 0, 'top': 330, 'right': 357, 'bottom': 838}, 'packageName': 'com.xunmeng.pinduoduo', 'contentDescription': '', 'resourceName': ''}
- 2026-04-23 17:16:56,831 - INFO - 任务执行异常: enter_target_page: search input not found
- 2026-04-23 17:16:56,832 - ERROR - [任务 900002] 执行异常,设备: fcb3c749,错误: enter_target_page: search input not found
- Traceback (most recent call last):
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 368, in run_task_worker
- completed_normally = pdd.main(device_id, 1, 0)
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 2030, in main
- self.enter_target_page()
- ~~~~~~~~~~~~~~~~~~~~~~^^
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 1746, in enter_target_page
- raise RuntimeError("enter_target_page: search input not found")
- RuntimeError: enter_target_page: search input not found
- 2026-04-23 17:17:01,217 - INFO - button1 and button_2 all not exist
- 2026-04-23 17:17:01,217 - INFO - 开始提取标题
- 2026-04-23 17:17:01,559 - INFO - 任务执行异常: enter_target_page: search input not found
- 2026-04-23 17:17:01,560 - ERROR - [任务 900001] 执行异常,设备: e2899b34,错误: enter_target_page: search input not found
- Traceback (most recent call last):
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 368, in run_task_worker
- completed_normally = pdd.main(device_id, 1, 0)
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 2030, in main
- self.enter_target_page()
- ~~~~~~~~~~~~~~~~~~~~~~^^
- File "C:\Users\datai\Desktop\PDD\pdd1\pdd_new2.py", line 1746, in enter_target_page
- raise RuntimeError("enter_target_page: search input not found")
- RuntimeError: enter_target_page: search input not found
- 2026-04-23 17:22:32,930 - INFO - PDD 调度器启动,轮询间隔 600 秒
- 2026-04-23 17:22:32,930 - INFO - 手动任务模式启用,跳过数据库任务分配
- 2026-04-23 17:22:32,930 - INFO - 手动任务模式启用,本轮分发 3 条任务
- 2026-04-23 17:22:32,931 - INFO - [任务 900001] 开始执行,设备: e2899b34
- 2026-04-23 17:22:32,932 - INFO - [任务 900001] 已分发到设备 e2899b34
- 2026-04-23 17:22:32,932 - INFO - {'task_id': 900001, 'equipment_id': 'manual', 'enterprise_id': 0, 'platform': 3, 'title_key': '骨通贴膏', 'spec_list': ['7cm*10cm*6'], 'brand': '天和', 'search_key': '骨通贴膏', 'save_search_key': '骨通贴膏', 'start_page': 0, 'end_page': 200, 'max_counts_limit': 300, 'sort': '升序', 'device_id': 'e2899b34', 'task_row': None, 'direct_shop_lookup': False}
- 2026-04-23 17:22:32,933 - INFO - [任务 900002] 开始执行,设备: fcb3c749
- 2026-04-23 17:22:32,933 - INFO - [任务 900002] 已分发到设备 fcb3c749
- 2026-04-23 17:22:32,933 - INFO - {'task_id': 900002, 'equipment_id': 'manual', 'enterprise_id': 0, 'platform': 3, 'title_key': '骨通贴膏', 'spec_list': ['8cm*13cm*6'], 'brand': '天和', 'search_key': '骨通贴膏', 'save_search_key': '骨通贴膏', 'start_page': 0, 'end_page': 200, 'max_counts_limit': 300, 'sort': '升序', 'device_id': 'fcb3c749', 'task_row': None, 'direct_shop_lookup': False}
- 2026-04-23 17:22:32,933 - INFO - [任务 900003] 开始执行,设备: 2e58510
- 2026-04-23 17:22:32,933 - INFO - [任务 900003] 已分发到设备 2e58510
- 2026-04-23 17:22:32,934 - INFO - {'task_id': 900003, 'equipment_id': 'manual', 'enterprise_id': 0, 'platform': 3, 'title_key': '骨通贴膏', 'spec_list': ['8cm*13cm*10'], 'brand': '天和', 'search_key': '骨通贴膏', 'save_search_key': '骨通贴膏', 'start_page': 0, 'end_page': 200, 'max_counts_limit': 300, 'sort': '升序', 'device_id': '2e58510', 'task_row': None, 'direct_shop_lookup': False}
- 2026-04-23 17:22:35,965 - INFO - [2026-04-23 17:22:32]连接到设备:2e58510
- 2026-04-23 17:22:40,255 - INFO - [2026-04-23 17:22:32]连接到设备:e2899b34
- 2026-04-23 17:22:40,263 - INFO - [2026-04-23 17:22:32]连接到设备:fcb3c749
- 2026-04-23 17:22:41,683 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 17:22:41,683 - INFO - pdd is in foreground, reuse app without restart
- 2026-04-23 17:22:42,703 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 17:22:42,703 - INFO - pdd is in foreground, reuse app without restart
- 2026-04-23 17:22:43,228 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 17:22:43,228 - INFO - pdd is in foreground, reuse app without restart
- 2026-04-23 17:23:00,942 - INFO - search input not found after swipe, fallback to enter_target_page
- 2026-04-23 17:23:00,989 - INFO - search input not found after swipe, fallback to enter_target_page
- 2026-04-23 17:23:01,482 - INFO - search input not found after swipe, fallback to enter_target_page
- 2026-04-23 17:23:03,381 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 17:23:03,477 - INFO - current foreground package: com.xunmeng.pinduoduo
- 2026-04-23 17:23:08,867 - INFO - current foreground package: com.xunmeng.pinduoduo
|