init
This commit is contained in:
14
app/core/utils/exceptions.py
Normal file
14
app/core/utils/exceptions.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# API请求code
|
||||
|
||||
stateCodeList = {
|
||||
"0": "成功",
|
||||
"40026": "验证码错误",
|
||||
"40001": "读取用户头像数据失败",
|
||||
"40020": "邮箱或密码不正确",
|
||||
"40018": "该账号未激活",
|
||||
"40033": "用户未激活,已重新发送激活邮件",
|
||||
}
|
||||
|
||||
|
||||
def getCode(code):
|
||||
return stateCodeList.get(str(code), "未知错误,请联系技术支持")
|
||||
Reference in New Issue
Block a user