demo
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ func (this *Context) Display(statu int, data interface{}) {
|
||||
|
||||
tpe := this.Config.GetMap("error").GetString(ObjToStr(statu))
|
||||
if tpe == "" {
|
||||
this.LastErr.SetError(errors.New("找不到对应的错误码"))
|
||||
this.SetError(errors.New("找不到对应的错误码"))
|
||||
}
|
||||
|
||||
temp["type"] = tpe
|
||||
|
||||
Reference in New Issue
Block a user