From f2533454d34ddf6c34f3aec7b6b9a66fb170bde0 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Sun, 4 Feb 2024 17:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=EF=BC=8C=E8=87=AA=E5=8A=A8=E5=8E=BB=E9=99=A4=E5=BC=95=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/api/api.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pywxdump/api/api.py b/pywxdump/api/api.py index 318a765..e58a203 100644 --- a/pywxdump/api/api.py +++ b/pywxdump/api/api.py @@ -32,13 +32,13 @@ def init(): 初始化 设置微信数据库路径,图片路径,解密需要的数据库 :return: """ - msg_path = request.json.get("msg_path", "").strip() - micro_path = request.json.get("micro_path", "").strip() - media_path = request.json.get("media_path", "").strip() + msg_path = request.json.get("msg_path", "").strip().strip("'").strip('"') + micro_path = request.json.get("micro_path", "").strip().strip("'").strip('"') + media_path = request.json.get("media_path", "").strip().strip("'").strip('"') - wx_path = request.json.get("wx_path", "").strip() - key = request.json.get("key", "").strip() - my_wxid = request.json.get("my_wxid", "").strip() + wx_path = request.json.get("wx_path", "").strip().strip("'").strip('"') + key = request.json.get("key", "").strip().strip("'").strip('"') + my_wxid = request.json.get("my_wxid", "").strip().strip("'").strip('"') init_type = request.json.get("init_type", "").strip()