Compare commits

3 Commits

Author SHA1 Message Date
hackrobot
7768a9e675 'updae' 2024-07-21 16:24:19 +08:00
hackrobot
f2b6e5b95b fix: 本地不检验ssl 2024-07-12 15:06:31 +08:00
hackrobot
b7109dc322 update 2024-04-10 19:09:49 +08:00
2 changed files with 24 additions and 1 deletions

Binary file not shown.

25
main.py
View File

@@ -88,4 +88,27 @@ async def payh5(item: dict):
response = requests.post(request_url, data=order, headers=headers)
if response:
print(response.json())
return response.json()
return response.json()
@app.post("/joinwechat")
async def joinwechat(item: dict):
print('item')
data = {
"wxid": None,
}
data["wxid"] =item['wxid']
request_url = "https://kunpeng.hackrobot.cn/joingroup"
# 返回结果中包含`jsapi`字段该字段的值即是前端发起时所需的6个支付参数
headers = {"content-type": "application/x-www-form-urlencoded"}
# response = requests.post(request_url, data=data, headers=headers)
response = requests.post(request_url, data=data, headers=headers,verify=False)
if response:
print(response.json())
return response.json()
# 启动脚本
# uvicorn main:app --reload --port 8055