This commit is contained in:
王思川 2022-05-25 15:46:04 +08:00
parent d3f12e38c0
commit 50141f7468
1 changed files with 4 additions and 3 deletions

View File

@ -71,6 +71,7 @@ def send_vcode_to_user_route():
obj.email = req['email']
obj.send_vcode_email()
return {"info": "发送成功"}, 200
except ReturnConditionCheckFailed as e:
e.log_error()
return {"info": e.__str__()}, e.status_code
except AssertionError as e:
return {"info": e.__str__()}, 202
except AttrCheckError as e:
return {"info": e.__str__()}, 202