wangkun 2 years ago
parent
commit
9a1eed10e4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      main/jxxf_recommend.py

+ 3 - 1
main/jxxf_recommend.py

@@ -113,7 +113,9 @@ class Recommend:
             cls.quit(log_type, driver)
 
         except Exception as e:
-            Common.logger(log_type).error('start_wechat异常:{}\n', e)
+            Common.logger(log_type).error('start_wechat异常:{},重启 ADB\n', e)
+            cmd = "cd ~ && source ./base_profile && adb kill-server && adb start-server"
+            os.system(cmd)
 
     # 退出 APP
     @classmethod