update:
This commit is contained in:
7
app.py
7
app.py
@@ -75,7 +75,7 @@ async def getphonenum(inputArguments: Union[str, None] = None,appid: Union[str,
|
||||
phonenumber=findPhoneNum(inputArguments)
|
||||
print('phonenumber',phonenumber)
|
||||
# # phonenumber='13243889782'
|
||||
if phonenumber is not None:
|
||||
if phonenumber is not None and uid is not None:
|
||||
warntext='[异度世界],微信加群验证码:3399'
|
||||
sendTg(f'用户手机号{phonenumber},开始发送验证码')
|
||||
# 判断用户uid是都触发过短信,不允许触发第2次
|
||||
@@ -84,11 +84,10 @@ async def getphonenum(inputArguments: Union[str, None] = None,appid: Union[str,
|
||||
sendTg(f'用户{uid}已存在,不触发短信')
|
||||
else:
|
||||
# 发送闪信
|
||||
# sendFlash(phonenumber,warntext)
|
||||
pass
|
||||
sendFlash(phonenumber,warntext)
|
||||
|
||||
else:
|
||||
sendTg(f'用户输入:{inputArguments},手机号不正确')
|
||||
sendTg(f'用户输入:{inputArguments},手机号不正确,或者uid参数异常')
|
||||
|
||||
# 存储uid和手机号
|
||||
# return {"appid": appid,"bid": bid,"requestid": requestid,"uid": uid,'inputArguments':inputArguments}
|
||||
|
||||
Reference in New Issue
Block a user