This commit is contained in:
hoteas 2017-08-16 09:15:51 +00:00
parent 4026a02235
commit bc1127e5f6
3 changed files with 11 additions and 2 deletions

8
.idea/php.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PhpUnit">
<phpunit_settings>
<PhpUnitSettings load_method="CUSTOM_LOADER" />
</phpunit_settings>
</component>
</project>

View File

@ -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

View File

@ -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