|
@@ -100,6 +100,7 @@ def success_response(data=None, code=0, msg=""):
|
|
|
|
|
|
|
|
|
def error_response(msg, data=None, code=1, http_code=200):
|
|
|
+ print("liuwei::debubgger::error_response:code=%s, msg=%s, data=%s" % (code, msg, data), flush=True)
|
|
|
response = json.dumps({"code": code, "msg": msg, "data": data})
|
|
|
return response, http_code, {"Content-Type": "application/json"}
|
|
|
|