Browse Source

MySQL Constant Bug Fix

naibo 1 year ago
parent
commit
f50b08e9c4
2 changed files with 3 additions and 1 deletions
  1. 2 0
      ElectronJS/update_chrome.py
  2. 1 1
      ExecuteStage/constants.py

+ 2 - 0
ElectronJS/update_chrome.py

@@ -90,6 +90,8 @@ old_driver_version = {
 }
 
 if __name__ == "__main__":
+    os.system("npm install -g extract-stealth-evasions") # 安装stealth.min.js
+    os.system("npx extract-stealth-evasions") # 提取stealth.min.js
     driver_downloads = []
     response = requests.get(chrome_driver_url)
     if response.status_code == 200:

+ 1 - 1
ExecuteStage/constants.py

@@ -5,7 +5,7 @@ from enum import unique, IntEnum
 class WriteMode(IntEnum):
     Create = 0  # 新建模式|Create Mode
     Append = 1  # 追加模式|Append Mode
-    Mysql = 2  # Mysql模式|Mysql Mode
+    MySQL = 2  # MySQL模式|MySQL Mode
     Json = 3   # Json模式|Json Mode