From f9846e5b6d770d38e4cceb2c996e40e628e64e3f Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 4 May 2023 17:38:52 +0800 Subject: [PATCH] feat --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 39cd807..dffdb2d 100644 --- a/app.py +++ b/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}]}