增加了util里的get_error_msg
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
def get_error_msg(code="20000"):
|
||||
error_set = {
|
||||
"20000": "成功",
|
||||
"50000": "意外错误",
|
||||
"50403": "Forbidden",
|
||||
"40000": "请求方法错误",
|
||||
"40001": "JSON解析错误",
|
||||
}
|
||||
return error_set.get(str(code))
|
||||
Reference in New Issue
Block a user