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