فهرست منبع

更新requirement文件

dukuisong 1 روز پیش
والد
کامیت
059b43168e
4فایلهای تغییر یافته به همراه86 افزوده شده و 8 حذف شده
  1. 2 1
      api/api_app.py
  2. 6 6
      office_helper.py
  3. 77 0
      requirements.txt
  4. 1 1
      tools/serve_client.py

+ 2 - 1
api/api_app.py

@@ -368,7 +368,8 @@ def create_cloud_file():
 @logger.catch()
 @app.route('/get_folder_tree', methods=['POST'])
 def get_base_path():
-    return jsonify(app.config['serve_client'].get_folder_tree())
+    res = app.config['serve_client'].get_folder_tree()
+    return jsonify(res)
 
 
 @logger.catch()

+ 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')):

+ 77 - 0
requirements.txt

@@ -0,0 +1,77 @@
+altgraph==0.17.4
+argon2-cffi==25.1.0
+argon2-cffi-bindings==21.2.0
+attrs==25.3.0
+black==24.8.0
+blinker==1.8.2
+certifi==2025.1.31
+cffi==1.17.1
+charset-normalizer==3.4.1
+click==8.1.8
+colorama==0.4.6
+coloredlogs==15.0.1
+et_xmlfile==2.0.0
+exceptiongroup==1.3.0
+Flask==3.0.3
+Flask-Cors==5.0.0
+flatbuffers==25.2.10
+gevent==24.2.1
+greenlet==2.0.2
+h11==0.16.0
+humanfriendly==10.0
+idna==3.10
+importlib_metadata==8.5.0
+itsdangerous==2.2.0
+Jinja2==3.1.6
+loguru==0.7.3
+MarkupSafe==2.1.5
+minio==7.2.10
+MouseInfo==0.1.3
+mpmath==1.3.0
+mypy_extensions==1.1.0
+outcome==1.3.0.post0
+packaging==24.2
+pandas==2.0.3
+pathspec==0.12.1
+pefile==2023.2.7
+pillow==10.4.0
+platformdirs==4.3.6
+protobuf==5.29.4
+pycparser==2.22
+pycryptodome==3.23.0
+pyee==9.0.4
+PyGetWindow==0.0.9
+pyinstaller==6.13.0
+pyinstaller-hooks-contrib==2025.3
+pyperclip==1.9.0
+pyreadline3==3.5.4
+PyRect==0.2.0
+PyScreeze==1.0.1
+PySocks==1.7.1
+python-dateutil==2.9.0.post0
+pytweening==1.2.0
+pytz==2025.2
+pywin32==310
+pywin32-ctypes==0.2.3
+requests==2.32.3
+requests-toolbelt==1.0.0
+selenium==4.27.1
+six==1.17.0
+sniffio==1.3.1
+sortedcontainers==2.4.0
+sympy==1.13.3
+tomli==2.2.1
+trio==0.27.0
+trio-websocket==0.12.2
+ttkbootstrap==1.7.5
+typing_extensions==4.13.2
+tzdata==2025.2
+urllib3==2.2.3
+watchdog==4.0.2
+Werkzeug==3.0.6
+win10toast==0.9
+win32_setctime==1.2.0
+wsproto==1.2.0
+zipp==3.20.2
+zope.event==5.0
+zope.interface==7.2

+ 1 - 1
tools/serve_client.py

@@ -233,5 +233,5 @@ class ServerClient:
 if __name__ == '__main__':
     client = ServerClient(f'{TARGET_URL}', 'admin', 'jxkj123456')
     res = client.decryption(
-        "")
+        "87ed629e963fcf0f573ef6daeaa30a9cde5b2659ab015f8bbc67115ab70771f3ab48734220dc18715f66e1524560fd23")
     print(res)