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))