mirror of
https://github.com/LC044/WeChatMsg
synced 2025-04-11 09:08:02 +08:00
增加post字段
This commit is contained in:
parent
d32ff26a82
commit
f77a24ce4d
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user