更改enroll命名,添加了注释,向get_error_msg中添加了一些错误代码

This commit is contained in:
ygm1881
2022-05-05 20:38:54 +08:00
parent 7fa3281a5f
commit 3472f7e00e
11 changed files with 123 additions and 175 deletions
+13
View File
@@ -5,5 +5,18 @@ def get_error_msg(code="20000"):
"50403": "Forbidden",
"40000": "请求方法错误",
"40001": "JSON解析错误",
"45030": "信息不存在",
"45032": "邮箱验证码过期",
"44031": "邮箱验证码错误",
"44032": "请先发送验证码",
"43032": "该邮箱已存在",
"43033": "该手机号码已存在",
"42033": "手机号码不合规",
"42034": "姓名过长",
"42035": "说的太多啦",
"42032": "邮箱过长",
"44033": "请勿频繁发送验证码",
"44036": "请输入正确格式的邮箱",
}
return error_set.get(str(code))