Commit 30e36848 authored by TesterYao's avatar TesterYao

1

parent e52dcf7f
2022-02-15 19:30:11,123 - log.py[line:29] - INFO: 开始获取巡查列表
2022-02-15 19:30:11,232 - log.py[line:29] - INFO: 获取巡查列表结果:[{'domainName': 'activity.tuifish.com/activity/redirect', 'id': 26}, {'domainName': 'activity.tuifish.com', 'id': 26}, {'domainName': 'engine.tuiafuwu.com', 'id': 368}, {'domainName': 'activity.tuiafuwu.com/activity/redirect', 'id': 369}, {'domainName': 'activity.tuiafuwu.com', 'id': 369}, {'domainName': 'activity.grapepie.cn/activity/redirect', 'id': 399}, {'domainName': 'activity.grapepie.cn', 'id': 399}, {'domainName': 'activity.crackersta.com/activity/redirect', 'id': 578}, {'domainName': 'activity.crackersta.com', 'id': 578}, {'domainName': 'activity.tuibear.com/activity/redirect', 'id': 619}, {'domainName': 'activity.tuibear.com', 'id': 619}, {'domainName': 'activity.ulalalaa.com', 'id': 2371}]
2022-02-15 19:30:11,232 - log.py[line:29] - INFO: 开始连接设备
2022-02-15 19:30:11,263 - log.py[line:29] - INFO: 连接成功
2022-02-15 19:30:12,762 - log.py[line:29] - INFO: 打开微信
2022-02-15 19:30:12,781 - rotation.py[line:84] - INFO: update orientation None->PORTRAIT
2022-02-15 19:30:14,255 - log.py[line:29] - INFO: 判断微信是否异常
2022-02-15 19:30:14,367 - log.py[line:29] - INFO: 微信异常,点击下一步
2022-02-15 19:30:16,617 - log.py[line:29] - INFO: 微信异常,点击下一步
2022-02-15 19:30:19,230 - log.py[line:29] - INFO: 微信异常,点击下一步
2022-02-15 19:30:21,867 - log.py[line:29] - INFO: 微信异常,点击下一步
2022-02-15 19:30:24,644 - log.py[line:29] - INFO: 点击进入微信
2022-02-15 19:30:26,927 - log.py[line:29] - INFO: 打开扫一扫,选择二维码
2022-02-15 19:30:33,675 - cv.py[line:59] - INFO: Try finding: Template(tpl1644909001064.png)
2022-02-15 19:30:33,959 - cv.py[line:189] - DEBUG: try match with MultiScaleTemplateMatchingPre
2022-02-15 19:30:33,969 - multiscale_template_matching.py[line:182] - DEBUG: [MSTemplatePre] threshold=0.7, result={'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7211816906929016}
2022-02-15 19:30:33,969 - utils.py[line:21] - DEBUG: find_best_result() run time is 0.01 s.
2022-02-15 19:30:33,969 - cv.py[line:155] - DEBUG: match result: {'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7211816906929016, 'time': 0.009672164916992188}
2022-02-15 19:30:41,055 - log.py[line:29] - INFO: 扫码完成,开始进行巡查
2022-02-15 19:30:43,601 - log.py[line:29] - INFO: 开始巡查:https://activity.tuifish.com/activity/redirect
2022-02-15 19:30:49,774 - log.py[line:29] - INFO: 开始巡查:https://activity.tuifish.com
2022-02-15 19:30:55,483 - log.py[line:29] - INFO: 开始巡查:https://engine.tuiafuwu.com
2022-02-15 19:30:56,922 - log.py[line:29] - INFO: SSP上报被封域名:https://engine.tuiafuwu.com
2022-02-15 19:30:57,029 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:30:57,029 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=engine.tuiafuwu.com&resulting=1
2022-02-15 19:31:01,556 - log.py[line:29] - INFO: 开始巡查:https://activity.tuiafuwu.com/activity/redirect
2022-02-15 19:31:02,998 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.tuiafuwu.com/activity/redirect
2022-02-15 19:31:03,037 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:31:03,038 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.tuiafuwu.com/activity/redirect&resulting=1
2022-02-15 19:31:07,854 - log.py[line:29] - INFO: 开始巡查:https://activity.tuiafuwu.com
2022-02-15 19:31:09,325 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.tuiafuwu.com
2022-02-15 19:31:09,368 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:31:09,368 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.tuiafuwu.com&resulting=1
2022-02-15 19:31:14,218 - log.py[line:29] - INFO: 开始巡查:https://activity.grapepie.cn/activity/redirect
2022-02-15 19:31:20,323 - log.py[line:29] - INFO: 开始巡查:https://activity.grapepie.cn
2022-02-15 19:31:26,259 - log.py[line:29] - INFO: 开始巡查:https://activity.crackersta.com/activity/redirect
2022-02-15 19:31:27,453 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.crackersta.com/activity/redirect
2022-02-15 19:31:27,489 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:31:27,489 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.crackersta.com/activity/redirect&resulting=1
2022-02-15 19:31:32,015 - log.py[line:29] - INFO: 开始巡查:https://activity.crackersta.com
2022-02-15 19:31:33,394 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.crackersta.com
2022-02-15 19:31:33,427 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:31:33,427 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.crackersta.com&resulting=1
2022-02-15 19:31:37,756 - log.py[line:29] - INFO: 开始巡查:https://activity.tuibear.com/activity/redirect
2022-02-15 19:31:43,877 - log.py[line:29] - INFO: 开始巡查:https://activity.tuibear.com
2022-02-15 19:31:50,066 - log.py[line:29] - INFO: 开始巡查:https://activity.ulalalaa.com
2022-02-15 19:31:51,522 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.ulalalaa.com
2022-02-15 19:31:51,557 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:31:51,557 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.ulalalaa.com&resulting=1
2022-02-15 19:31:55,197 - log.py[line:29] - INFO: 打开微信
2022-02-15 19:31:56,874 - log.py[line:29] - INFO: 判断微信是否异常
2022-02-15 19:31:58,759 - log.py[line:29] - INFO: 打开扫一扫,选择二维码
2022-02-15 19:32:04,796 - cv.py[line:59] - INFO: Try finding: Template(tpl1644909001064.png)
2022-02-15 19:32:05,096 - cv.py[line:189] - DEBUG: try match with MultiScaleTemplateMatchingPre
2022-02-15 19:32:05,106 - multiscale_template_matching.py[line:182] - DEBUG: [MSTemplatePre] threshold=0.7, result={'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7209540009498596}
2022-02-15 19:32:05,106 - utils.py[line:21] - DEBUG: find_best_result() run time is 0.01 s.
2022-02-15 19:32:05,106 - cv.py[line:155] - DEBUG: match result: {'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7209540009498596, 'time': 0.010029792785644531}
2022-02-15 19:32:10,378 - log.py[line:29] - INFO: 扫码完成,开始进行巡查
2022-02-15 19:32:13,133 - log.py[line:29] - INFO: 开始巡查:https://activity.tuifish.com/activity/redirect
2022-02-15 19:32:19,382 - log.py[line:29] - INFO: 开始巡查:https://activity.tuifish.com
2022-02-15 19:32:25,657 - log.py[line:29] - INFO: 开始巡查:https://engine.tuiafuwu.com
2022-02-15 19:32:27,111 - log.py[line:29] - INFO: SSP上报被封域名:https://engine.tuiafuwu.com
2022-02-15 19:32:27,150 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:32:27,151 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=engine.tuiafuwu.com&resulting=1
2022-02-15 19:32:31,998 - log.py[line:29] - INFO: 开始巡查:https://activity.tuiafuwu.com/activity/redirect
2022-02-15 19:32:33,376 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.tuiafuwu.com/activity/redirect
2022-02-15 19:32:33,419 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:32:33,419 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.tuiafuwu.com/activity/redirect&resulting=1
2022-02-15 19:32:38,238 - log.py[line:29] - INFO: 开始巡查:https://activity.tuiafuwu.com
2022-02-15 19:32:39,687 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.tuiafuwu.com
2022-02-15 19:32:39,728 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:32:39,729 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.tuiafuwu.com&resulting=1
2022-02-15 19:32:44,549 - log.py[line:29] - INFO: 开始巡查:https://activity.grapepie.cn/activity/redirect
2022-02-15 19:32:50,494 - log.py[line:29] - INFO: 开始巡查:https://activity.grapepie.cn
2022-02-15 19:32:56,715 - log.py[line:29] - INFO: 开始巡查:https://activity.crackersta.com/activity/redirect
2022-02-15 19:32:58,171 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.crackersta.com/activity/redirect
2022-02-15 19:32:58,205 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:32:58,205 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.crackersta.com/activity/redirect&resulting=1
2022-02-15 19:33:02,670 - log.py[line:29] - INFO: 开始巡查:https://activity.crackersta.com
2022-02-15 19:33:04,130 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.crackersta.com
2022-02-15 19:33:04,171 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:33:04,171 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.crackersta.com&resulting=1
2022-02-15 19:33:08,805 - log.py[line:29] - INFO: 开始巡查:https://activity.tuibear.com/activity/redirect
2022-02-15 19:33:14,859 - log.py[line:29] - INFO: 开始巡查:https://activity.tuibear.com
2022-02-15 19:33:21,001 - log.py[line:29] - INFO: 开始巡查:https://activity.ulalalaa.com
2022-02-15 19:33:22,455 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.ulalalaa.com
2022-02-15 19:33:22,495 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:33:22,495 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.ulalalaa.com&resulting=1
2022-02-15 19:33:26,158 - log.py[line:29] - INFO: 打开微信
2022-02-15 19:33:27,689 - log.py[line:29] - INFO: 判断微信是否异常
2022-02-15 19:33:31,073 - log.py[line:29] - INFO: 打开扫一扫,选择二维码
2022-02-15 19:33:39,197 - cv.py[line:59] - INFO: Try finding: Template(tpl1644909001064.png)
2022-02-15 19:33:39,466 - cv.py[line:189] - DEBUG: try match with MultiScaleTemplateMatchingPre
2022-02-15 19:33:39,475 - multiscale_template_matching.py[line:182] - DEBUG: [MSTemplatePre] threshold=0.7, result={'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7209681272506714}
2022-02-15 19:33:39,475 - utils.py[line:21] - DEBUG: find_best_result() run time is 0.01 s.
2022-02-15 19:33:39,475 - cv.py[line:155] - DEBUG: match result: {'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7209681272506714, 'time': 0.008565187454223633}
2022-02-15 19:33:46,543 - log.py[line:29] - INFO: 扫码完成,开始进行巡查
2022-02-15 19:33:48,984 - log.py[line:29] - INFO: 开始巡查:https://activity.tuifish.com/activity/redirect
2022-02-15 19:33:55,388 - log.py[line:29] - INFO: 开始巡查:https://activity.tuifish.com
2022-02-15 19:34:01,667 - log.py[line:29] - INFO: 开始巡查:https://engine.tuiafuwu.com
2022-02-15 19:34:03,126 - log.py[line:29] - INFO: SSP上报被封域名:https://engine.tuiafuwu.com
2022-02-15 19:34:03,167 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:34:03,167 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=engine.tuiafuwu.com&resulting=1
2022-02-15 19:34:08,026 - log.py[line:29] - INFO: 开始巡查:https://activity.tuiafuwu.com/activity/redirect
2022-02-15 19:34:09,310 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.tuiafuwu.com/activity/redirect
2022-02-15 19:34:09,366 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:34:09,367 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.tuiafuwu.com/activity/redirect&resulting=1
2022-02-15 19:34:14,184 - log.py[line:29] - INFO: 开始巡查:https://activity.tuiafuwu.com
2022-02-15 19:34:15,651 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.tuiafuwu.com
2022-02-15 19:34:15,690 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:34:15,690 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.tuiafuwu.com&resulting=1
2022-02-15 19:34:20,536 - log.py[line:29] - INFO: 开始巡查:https://activity.grapepie.cn/activity/redirect
2022-02-15 19:34:26,690 - log.py[line:29] - INFO: 开始巡查:https://activity.grapepie.cn
2022-02-15 19:34:33,015 - log.py[line:29] - INFO: 开始巡查:https://activity.crackersta.com/activity/redirect
2022-02-15 19:34:34,476 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.crackersta.com/activity/redirect
2022-02-15 19:34:34,514 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:34:34,514 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.crackersta.com/activity/redirect&resulting=1
2022-02-15 19:34:39,348 - log.py[line:29] - INFO: 开始巡查:https://activity.crackersta.com
2022-02-15 19:34:40,706 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.crackersta.com
2022-02-15 19:34:40,755 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:34:40,756 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.crackersta.com&resulting=1
2022-02-15 19:34:45,583 - log.py[line:29] - INFO: 开始巡查:https://activity.tuibear.com/activity/redirect
2022-02-15 19:34:51,845 - log.py[line:29] - INFO: 开始巡查:https://activity.tuibear.com
2022-02-15 19:34:58,031 - log.py[line:29] - INFO: 开始巡查:https://activity.ulalalaa.com
2022-02-15 19:34:59,490 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.ulalalaa.com
2022-02-15 19:34:59,524 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:34:59,524 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.ulalalaa.com&resulting=1
2022-02-15 19:35:03,203 - log.py[line:29] - INFO: 打开微信
2022-02-15 19:35:04,702 - log.py[line:29] - INFO: 判断微信是否异常
2022-02-15 19:35:04,806 - log.py[line:29] - INFO: 微信异常,点击下一步
2022-02-15 19:35:07,046 - log.py[line:29] - INFO: 微信异常,点击下一步
2022-02-15 19:35:09,610 - log.py[line:29] - INFO: 微信异常,点击下一步
2022-02-15 19:35:12,182 - log.py[line:29] - INFO: 微信异常,点击下一步
2022-02-15 19:35:14,916 - log.py[line:29] - INFO: 点击进入微信
2022-02-15 19:35:17,219 - log.py[line:29] - INFO: 打开扫一扫,选择二维码
2022-02-15 19:35:23,757 - cv.py[line:59] - INFO: Try finding: Template(tpl1644909001064.png)
2022-02-15 19:35:24,034 - cv.py[line:189] - DEBUG: try match with MultiScaleTemplateMatchingPre
2022-02-15 19:35:24,043 - multiscale_template_matching.py[line:182] - DEBUG: [MSTemplatePre] threshold=0.7, result={'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7210682034492493}
2022-02-15 19:35:24,043 - utils.py[line:21] - DEBUG: find_best_result() run time is 0.01 s.
2022-02-15 19:35:24,044 - cv.py[line:155] - DEBUG: match result: {'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7210682034492493, 'time': 0.009756088256835938}
2022-02-15 19:35:29,316 - log.py[line:29] - INFO: 扫码完成,开始进行巡查
2022-02-15 19:35:32,232 - log.py[line:29] - INFO: 开始巡查:https://activity.tuifish.com/activity/redirect
2022-02-15 19:35:38,671 - log.py[line:29] - INFO: 开始巡查:https://activity.tuifish.com
2022-02-15 19:35:45,012 - log.py[line:29] - INFO: 开始巡查:https://engine.tuiafuwu.com
2022-02-15 19:35:46,480 - log.py[line:29] - INFO: SSP上报被封域名:https://engine.tuiafuwu.com
2022-02-15 19:35:46,582 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:35:46,582 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=engine.tuiafuwu.com&resulting=1
2022-02-15 19:35:51,436 - log.py[line:29] - INFO: 开始巡查:https://activity.tuiafuwu.com/activity/redirect
2022-02-15 19:35:52,821 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.tuiafuwu.com/activity/redirect
2022-02-15 19:35:52,856 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:35:52,856 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.tuiafuwu.com/activity/redirect&resulting=1
2022-02-15 19:35:57,636 - log.py[line:29] - INFO: 开始巡查:https://activity.tuiafuwu.com
2022-02-15 19:35:59,105 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.tuiafuwu.com
2022-02-15 19:35:59,146 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:35:59,146 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.tuiafuwu.com&resulting=1
2022-02-15 19:36:03,956 - log.py[line:29] - INFO: 开始巡查:https://activity.grapepie.cn/activity/redirect
2022-02-15 19:36:10,075 - log.py[line:29] - INFO: 开始巡查:https://activity.grapepie.cn
2022-02-15 19:36:16,241 - log.py[line:29] - INFO: 开始巡查:https://activity.crackersta.com/activity/redirect
2022-02-15 19:36:17,697 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.crackersta.com/activity/redirect
2022-02-15 19:36:17,735 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:36:17,735 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.crackersta.com/activity/redirect&resulting=1
2022-02-15 19:36:22,176 - log.py[line:29] - INFO: 开始巡查:https://activity.crackersta.com
2022-02-15 19:36:23,634 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.crackersta.com
2022-02-15 19:36:23,671 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:36:23,672 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.crackersta.com&resulting=1
2022-02-15 19:36:28,331 - log.py[line:29] - INFO: 开始巡查:https://activity.tuibear.com/activity/redirect
2022-02-15 19:36:34,441 - log.py[line:29] - INFO: 开始巡查:https://activity.tuibear.com
2022-02-15 19:36:40,566 - log.py[line:29] - INFO: 开始巡查:https://activity.ulalalaa.com
2022-02-15 19:36:42,024 - log.py[line:29] - INFO: SSP上报被封域名:https://activity.ulalalaa.com
2022-02-15 19:36:42,060 - log.py[line:29] - INFO: 上报成功:{"code":"0","desc":"成功","data":"ok"}
2022-02-15 19:36:42,060 - log.py[line:29] - INFO: https://ssp-manager.tuia.cn/wchatDomain/wechatScan/patrolResulting?shieldDomain=activity.ulalalaa.com&resulting=1
2022-02-15 19:36:45,716 - log.py[line:29] - INFO: 打开微信
2022-02-15 19:36:47,242 - log.py[line:29] - INFO: 判断微信是否异常
2022-02-15 19:36:48,703 - log.py[line:29] - INFO: 打开扫一扫,选择二维码
2022-02-15 19:36:54,848 - cv.py[line:59] - INFO: Try finding: Template(tpl1644909001064.png)
2022-02-15 19:36:55,153 - cv.py[line:189] - DEBUG: try match with MultiScaleTemplateMatchingPre
2022-02-15 19:36:55,161 - multiscale_template_matching.py[line:182] - DEBUG: [MSTemplatePre] threshold=0.7, result={'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7212638258934021}
2022-02-15 19:36:55,161 - utils.py[line:21] - DEBUG: find_best_result() run time is 0.01 s.
2022-02-15 19:36:55,162 - cv.py[line:155] - DEBUG: match result: {'result': (732, 1467), 'rectangle': ((709.888, 1448.288), (709.888, 1486.288), (755.888, 1486.288), (755.888, 1448.288)), 'confidence': 0.7212638258934021, 'time': 0.008242130279541016}
2022-02-15 19:37:01,815 - log.py[line:29] - INFO: 扫码完成,开始进行巡查
2022-02-15 19:37:04,211 - log.py[line:29] - INFO: 开始巡查:https://activity.tuifish.com/activity/redirect
2022-02-15 19:37:10,212 - log.py[line:37] - ERROR: 域名巡查脚本报错
...@@ -10,10 +10,26 @@ class SSP: ...@@ -10,10 +10,26 @@ class SSP:
self.host = 'https://ssp-manager.tuia.cn' self.host = 'https://ssp-manager.tuia.cn'
# ssp上报被封域名列表,微信扫码巡查使用 # ssp上报被封域名列表,微信扫码巡查使用
self.block_list_url = '/wchatDomain/wechatScan/patrolResulting?shieldDomain=' self.block_list_url = '/wchatDomain/wechatScan/patrolResulting?shieldDomain='
# ssp获取待巡查列表接口
self.valid_list_url = '/wchatDomain/wechatScan/patrolListing'
# 盘古上报被封域名列表,微信扫码巡查使用 # 盘古上报被封域名列表,微信扫码巡查使用
self.block_pg_list_url = 'https://ssp-manager.tuia.cn/wchatDomain/wechatScan/sendDingDing' self.block_pg_list_url = 'https://ssp-manager.tuia.cn/wchatDomain/wechatScan/sendDingDing'
self.session = requests.session() self.session = requests.session()
def get_valid_list(self):
LOG.info('开始获取巡查列表')
r = self.session.get(url=self.host + self.valid_list_url)
if r.status_code == 200 and r.json().get('desc') == '成功':
data = r.json().get('data')
valid_list = []
for i in data:
valid_list.append(i.get('domainName'))
if valid_list:
LOG.info('获取巡查列表结果:' + str(valid_list))
return valid_list
else:
LOG.error('获取巡查列表异常,repose:' + r.text)
def post_block_list(self, b_url): def post_block_list(self, b_url):
LOG.info('SSP上报被封域名:'+b_url) LOG.info('SSP上报被封域名:'+b_url)
r = self.session.get(url=self.host+self.block_list_url+b_url.split('https://')[1]+'&resulting=1') r = self.session.get(url=self.host+self.block_list_url+b_url.split('https://')[1]+'&resulting=1')
...@@ -37,4 +53,6 @@ class SSP: ...@@ -37,4 +53,6 @@ class SSP:
if __name__ == '__main__':
ssp = SSP()
ssp.get_valid_list()
from airtest.core.api import *
from poco.drivers.ios import iosPoco
from dingMessage import send_messages
from log import LOG
from manager import Zk
from ssp import SSP
def runner(channel):
url_list = channel.get_valid_list()
# url_list= ['activity.zadtc.com']
for i in url_list:
try:
LOG.info('点击输入框')
poco(type='TextField').click()
sleep(0.5)
LOG.info('输入待巡查链接:'+ i)
if i.startswith('http'):
text(i)
else:
text('https://'+i)
sleep(0.77)
LOG.info('点击确定按钮')
# touch(Template(r"tpl1648539686506.png", record_pos=(-0.263, -0.665), resolution=(1440, 2560)))
poco(name='确定').click()
LOG.info('正在巡查:' + i)
sleep(2)
try:
if poco(name="已停止访问该网页").exists():
LOG.info('巡查结束,域名被封:%s' % i)
try:
channel.post_block_list(i)
except:
send_messages('上报微信被封域名失败:' + channel.__class__.__name__)
else:
LOG.info('巡查结束,域名正常:' + i)
except TargetNotFoundError:
LOG.info('巡查结束,域名正常:' + i)
poco(name='返回').click()
sleep(0.5)
touch(Template(r"tpl1650007378767.png", record_pos=(0.429, -0.911), resolution=(828, 1792)))
touch(Template(r"tpl1650007403842.png", record_pos=(0.085, 0.708), resolution=(828, 1792)))
except Exception as e:
LOG.error('微信扫码域名巡查,执行巡查时脚本出错:'+str(e))
re_wx()
# touch(Template(r"tpl1648203197604.png", record_pos=(-0.437, -0.758), resolution=(1440, 2560)))
# touch(Template(r"tpl1648543114629.png", record_pos=(0.005, -0.516), resolution=(1440, 2560)))
def check_ex():
LOG.info('判断是否在微信首页')
if not poco("快捷操作").exists():
LOG.info('不在微信首页,重新打开微信')
device.stop_app('com.tencent.xin')
device.start_app('com.tencent.xin')
def scan():
LOG.info('打开扫一扫,选择二维码')
poco("快捷操作").wait(timeout=5).click()
poco("扫一扫").wait(timeout=5).click()
wait(Template(r"tpl1644909001064.png", record_pos=(0.396, 0.696), resolution=(828, 1792)), timeout=5)
touch(Template(r"tpl1644909001064.png", record_pos=(0.396, 0.696), resolution=(828, 1792)))
poco('照片3,拍摄时间,2022年4月15日 下午3:00 ').wait(timeout=5).click()
poco(name="完成").wait(timeout=5).click()
def check_wx():
LOG.info('判断微信是否异常')
while poco(name="下一步").exists():
LOG.info('微信异常,点击下一步')
poco(name="下一步").click()
if poco(name="进入微信").exists():
LOG.info('点击进入微信')
poco(name="进入微信").click()
def re_wx():
device.stop_app('com.tencent.xin')
device.start_app('com.tencent.xin')
check_ex()
check_wx()
if __name__ == '__main__':
ssp = SSP()
# zk = Zk()
LOG.info('开始连接设备')
device = connect_device('ios:///http://127.0.0.1:8100')
LOG.info('连接成功')
poco = iosPoco()
while True:
try:
check_ex()
check_wx()
scan()
# runner(zk)
runner(ssp)
except Exception as e:
print(e)
LOG.error('微信扫码域名巡查脚本报错,三分钟后重试!')
sleep(30)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment