wangkun 2 gadi atpakaļ
vecāks
revīzija
bd7da24d97
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      main/kdjsfq.py

+ 2 - 0
main/kdjsfq.py

@@ -102,6 +102,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 .bash_profile && adb kill-server && adb start-server"
+            os.system(cmd)
 
     @classmethod
     def quit(cls, log_type, driver: WebDriver):