wangkun 2 rokov pred
rodič
commit
9a1eed10e4
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      main/jxxf_recommend.py

+ 3 - 1
main/jxxf_recommend.py

@@ -113,7 +113,9 @@ class Recommend:
             cls.quit(log_type, driver)
             cls.quit(log_type, driver)
 
 
         except Exception as e:
         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
     # 退出 APP
     @classmethod
     @classmethod