From 154b7c5286dc0f38abbffa79b68688cca4632cb0 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Sun, 18 Aug 2024 00:23:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=8D=95=E7=94=A8=E6=88=B7=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E4=B8=8A=E6=AC=A1=E6=95=B0=E6=8D=AE=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/api/local_server.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pywxdump/api/local_server.py b/pywxdump/api/local_server.py index cb686bf..c8f70e5 100644 --- a/pywxdump/api/local_server.py +++ b/pywxdump/api/local_server.py @@ -24,7 +24,7 @@ ls_api = APIRouter() # 以下为初始化相关 ******************************************************************************************************* -@ls_api.api_route('/init_last_local_wxid', methods=["GET", 'POST']) +@ls_api.post('/init_last_local_wxid') @error9999 def init_last_local_wxid(): """ @@ -72,7 +72,7 @@ class InitKeyRequest(BaseModel): my_wxid: str -@ls_api.api_route('/init_key', methods=["GET", 'POST']) +@ls_api.post('/init_key') @error9999 def init_key(request: InitKeyRequest): """ @@ -96,8 +96,6 @@ def init_key(request: InitKeyRequest): # if isinstance(db_config, dict) and db_config and os.path.exists(db_config.get("path")): # pmsg = DBHandler(db_config) # # pmsg.close_all_connection() - print(id(gc)) - print(wx_path, "\n", key, "\n", my_wxid, "\n", gc.work_path) out_path = os.path.join(gc.work_path, "decrypted", my_wxid) if my_wxid else os.path.join(gc.work_path, "decrypted") # 检查文件夹中文件是否被占用