update
This commit is contained in:
11
app.py
11
app.py
@@ -109,6 +109,7 @@ async def getphonenum(
|
||||
):
|
||||
|
||||
err_code=0
|
||||
outputArguments=''
|
||||
print("inputArguments", inputArguments)
|
||||
# uid:唯一标识用户的openid
|
||||
# print("appid", appid, "bid", bid, "requestid", requestid, "uid", uid)
|
||||
@@ -144,12 +145,12 @@ async def getphonenum(
|
||||
# 存储uid和手机号
|
||||
# return {"appid": appid,"bid": bid,"requestid": requestid,"uid": uid,'inputArguments':inputArguments}
|
||||
|
||||
# 后台任务
|
||||
# background_tasks.add_task(resData,inputArguments,uid)
|
||||
|
||||
# await resData(inputArguments,uid)
|
||||
if err_code==0:
|
||||
outputArguments='验证码发送成功'
|
||||
else:
|
||||
outputArguments='验证码发送失败,请检查手机号格式,或其他异常'
|
||||
# 成功的响应 1成功 2失败
|
||||
content = {"err_code": err_code,"data_list": [{"outputArguments":'test'}]}
|
||||
content = {"err_code": err_code,"data_list": [{"outputArguments":outputArguments}]}
|
||||
|
||||
|
||||
headers = {"Content-Type": "application/json"}
|
||||
|
||||
Reference in New Issue
Block a user