bugfix
This commit is contained in:
parent
41e334021c
commit
8e531eaad9
@ -7,18 +7,12 @@ if phone is None:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
# 使用短信模块发布的sms_engine实例生成验证码,参数手机号
|
# 使用短信模块发布的sms_engine实例生成验证码,参数手机号
|
||||||
status, timeout = await sms_engine.generate_sms_code(phone)
|
ret = await sms_engine.generate_sms_code(phone)
|
||||||
if not status:
|
debug(f'ret')
|
||||||
return {
|
|
||||||
"status": "error",
|
|
||||||
"data": {
|
|
||||||
message": f'为{phone}生成的手机号出错"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return {
|
return {
|
||||||
"status": "ok",
|
"status": "ok",
|
||||||
"data": {
|
"data": {
|
||||||
"message": “短信码已生成",
|
"message": "短信码已生成",
|
||||||
"timeout": timeout
|
"ret": ret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user