From bc1127e5f6ff793657b070f0eb93618c6e9309ed Mon Sep 17 00:00:00 2001 From: hoteas Date: Wed, 16 Aug 2017 09:15:51 +0000 Subject: [PATCH] --- .idea/php.xml | 8 ++++++++ error.go | 3 ++- type.go | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .idea/php.xml diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..e43a64f --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/error.go b/error.go index 59e39ac..35a9800 100644 --- a/error.go +++ b/error.go @@ -13,9 +13,10 @@ func(this *Error)GetError()error{ } -func(this *Error)SetError(err error,loglevel... int){ +func(this *Error)SetError(err error,loglevel ...int){ SafeMutex("HOTIME-SYSTEM-ERR", func() interface{} { + this.err=nil if err==nil{ this.err=err return nil diff --git a/type.go b/type.go index d53c872..4e1f8e4 100644 --- a/type.go +++ b/type.go @@ -1,7 +1,7 @@ package hotime //控制器 -type Ctr map[string]func(*Context) +type Ctr map[string]func(this *Context) type Proj map[string]Ctr type Router map[string]Proj