wangkun 2 년 전
부모
커밋
a544760891
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      main/ganggangdouchuan.py

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