Browse Source

修复账号密码错误没有提示的问题

dukuisong 2 weeks ago
parent
commit
f70ea7b498
3 changed files with 7 additions and 7 deletions
  1. 6 6
      office_helper.py
  2. 1 1
      static/index.html
  3. BIN
      static/index.html.gz

+ 6 - 6
office_helper.py

@@ -51,12 +51,12 @@ def start_all_services(serve_client, work_path):
 
 if __name__ == "__main__":
 
-    if not os.path.exists(f'{dl_code}:\\ProgramData\\OfficeAssistant\\config.json'):
-        logger.error('"config.json" is not find')
-        sys.exit(0)
-
-    with open(f'{dl_code}:\\ProgramData\\OfficeAssistant\\config.json', 'r', encoding='utf-8') as f:
-    # with open(f'config.json', 'r', encoding='utf-8') as f:
+    # if not os.path.exists(f'{dl_code}:\\ProgramData\\OfficeAssistant\\config.json'):
+    #     logger.error('"config.json" is not find')
+    #     sys.exit(0)
+    #
+    # with open(f'{dl_code}:\\ProgramData\\OfficeAssistant\\config.json', 'r', encoding='utf-8') as f:
+    with open(f'config.json', 'r', encoding='utf-8') as f:
         args = json.load(f)
     args['worker_path'] = args['worker_path'].replace('\\\\', '\\')
     if not (args.get('username') and args.get('password')):

+ 1 - 1
static/index.html

@@ -201,7 +201,7 @@
         opacity: 0.5;
       }
     </style>
-    <script type="module" crossorigin src="./assets/index-BzIPCP9f.js"></script>
+    <script type="module" crossorigin src="./assets/index-DdHVcksO.js"></script>
     <link rel="stylesheet" crossorigin href="./assets/index-CFSY6fn5.css">
   </head>
 

BIN
static/index.html.gz