@@ -21,7 +21,7 @@ func ErrorHandler(r *ghttp.Request) {
}
// 返回固定的友好信息
r.Response.ClearBuffer()
- r.Response.Write(map[string]interface{}{
+ r.Response.WriteJson(map[string]interface{}{
"error_code": gCode.Code(),
"error_msg": gCode.Message(),
})