From f77a24ce4ddcfcf16b17c086869bfc482fa13bcc Mon Sep 17 00:00:00 2001 From: shuaikangzhou <863909694@qq.com> Date: Sun, 21 Jan 2024 20:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0post=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/web_ui/web.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/web_ui/web.py b/app/web_ui/web.py index 2689a6d..550ebde 100644 --- a/app/web_ui/web.py +++ b/app/web_ui/web.py @@ -117,13 +117,14 @@ def upload(): 'html_content': html, 'wxid': contact.wxid, 'username': Me().wxid, + 'type': 'contact' } response = requests.post(api_url, data=data) + print(response) print(response.json()) response = make_response(response.json()) response.headers.add('Access-Control-Allow-Origin', '*') # Replace '*' with specific origins if needed response.headers.add('Content-Type', 'application/json') - return response