From 6d502dbc040f5abe664379f276a91bc6e5099663 Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Fri, 5 Jan 2024 20:40:26 +0800 Subject: [PATCH] =?UTF-8?q?api=20=E5=A2=9E=E5=8A=A0=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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pywxdump/api/api.py b/pywxdump/api/api.py index 19f7a51..0f71b05 100644 --- a/pywxdump/api/api.py +++ b/pywxdump/api/api.py @@ -69,7 +69,8 @@ def chat_count(): msg_path = request.headers.get("msg_path") if not msg_path: msg_path = g.msg_path - contact_list = analyzer.get_chat_count(msg_path) + username = request.json.get("username", "") + contact_list = analyzer.get_chat_count(msg_path, username) return ReJson(0, contact_list) except Exception as e: return ReJson(9999, msg=str(e))