Files
ITShowPlatform/utils/get_error_msg.py
T
2022-05-05 18:57:35 +08:00

10 lines
259 B
Python

def get_error_msg(code="20000"):
error_set = {
"20000": "成功",
"50000": "意外错误",
"50403": "Forbidden",
"40000": "请求方法错误",
"40001": "JSON解析错误",
}
return error_set.get(str(code))