feat
This commit is contained in:
6
app.py
6
app.py
@@ -108,8 +108,8 @@ async def getphonenum(
|
||||
uid: Union[str, None] = Header(default=None)
|
||||
):
|
||||
|
||||
err_code=-1
|
||||
outputArguments='验证码发送失败,请检查手机号格式,或其他异常'
|
||||
err_code=0
|
||||
outputArguments=''
|
||||
print("inputArguments", inputArguments)
|
||||
# uid:唯一标识用户的openid
|
||||
# print("appid", appid, "bid", bid, "requestid", requestid, "uid", uid)
|
||||
@@ -149,7 +149,7 @@ async def getphonenum(
|
||||
if err_code==0:
|
||||
outputArguments='验证码发送成功'
|
||||
else:
|
||||
pass
|
||||
outputArguments='验证码发送失败,请检查手机号格式,或其他异常'
|
||||
# 成功的响应 0成功 -1失败
|
||||
|
||||
content = {"err_code": err_code,"data_list": [{"outputArguments":outputArguments}]}
|
||||
|
||||
Reference in New Issue
Block a user