From 800933453a968b7bc645b61e8a59cdda73196ce6 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Sun, 4 Feb 2024 17:37:19 +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=E4=B8=8D=E4=BD=BF=E7=94=A8key=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=9D=9E=E5=BF=85=E9=A1=BB=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/api/api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pywxdump/api/api.py b/pywxdump/api/api.py index 02554f6..318a765 100644 --- a/pywxdump/api/api.py +++ b/pywxdump/api/api.py @@ -85,10 +85,9 @@ def init(): return ReJson(2001, body=merge_save_path) else: - if not msg_path or not micro_path or not media_path or not wx_path or not my_wxid: - return ReJson(1002) - if not os.path.exists(msg_path) or not os.path.exists(micro_path) or not os.path.exists( - media_path) or not os.path.exists(wx_path): + if not msg_path or not micro_path: + return ReJson(1002, body="msg_path and micro_path is required") + if not os.path.exists(msg_path) or not os.path.exists(micro_path): return ReJson(1001) save_session(g.sf, "msg_path", msg_path)