feat
This commit is contained in:
4
app.py
4
app.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user