wangkun 2 anni fa
parent
commit
26b0c3eb2e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      main/zhufumao_recommend.py

+ 2 - 0
main/zhufumao_recommend.py

@@ -78,6 +78,8 @@ class Recommend:
             cls.quit(log_type, driver)
         except Exception as e:
             Common.logger(log_type).error(f'start_wechat异常:{e}\n')
+            cmd = "cd ~ && source ./base_profile && adb kill-server && adb start-server"
+            os.system(cmd)
 
     @classmethod
     def quit(cls, log_type, driver: WebDriver):