From e47004c638c7f8d3c3993e7c338554d4d22e8309 Mon Sep 17 00:00:00 2001 From: hoteas Date: Wed, 23 Aug 2017 02:07:13 +0000 Subject: [PATCH] demo --- .idea/workspace.xml | 84 ++++++++++++++++++++++++++++++--------------- context.go | 2 +- 2 files changed, 57 insertions(+), 29 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c3310c0..5a9a65e 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -26,7 +26,7 @@ - + @@ -36,6 +36,19 @@ + + + + + + + + + + + + + @@ -118,18 +131,6 @@ - - - - - - - - - - - - @@ -170,13 +171,13 @@ @@ -261,6 +262,32 @@ - @@ -654,8 +681,9 @@ + - + @@ -951,17 +979,6 @@ - - - - - - - - - - - @@ -1090,5 +1107,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/context.go b/context.go index a72cd24..c518111 100644 --- a/context.go +++ b/context.go @@ -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