This commit is contained in:
eric
2023-05-05 10:08:04 +08:00
parent ee3c9b7795
commit ff261a5c5d

4
app.py
View File

@@ -157,7 +157,7 @@ async def getphonenum(
uid: Union[str, None] = Header(default=None),
):
err_code = 0
outputArguments = "验证码发送成功"
outputArguments = "验证码发送成功,请留意短信"
print("inputArguments", inputArguments)
try:
inputArguments = unquote(inputArguments, "utf-8")
@@ -173,7 +173,7 @@ async def getphonenum(
# 判断用户uid是都触发过短信,不允许触发第2次
if findUid(uid, phonenumber) is True:
err_code = -1
outputArguments = "验证已发送,不允许重复触发"
outputArguments = "验证码已下发1次,不允许重复触发"
print("用户uid已存在,不触发短信")
# sendTg(f"用户{uid}已存在,不触发短信")
else: