1
0
mirror of https://github.com/LC044/WeChatMsg synced 2025-04-11 09:08:02 +08:00

增加post字段

This commit is contained in:
shuaikangzhou 2024-01-21 20:28:31 +08:00
parent d32ff26a82
commit f77a24ce4d

View File

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