This commit is contained in:
hoteas
2017-08-23 02:07:13 +00:00
parent 2dc47959bf
commit e47004c638
2 changed files with 57 additions and 29 deletions
+1 -1
View File
@@ -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