diff --git a/example/admin/init.go b/example/admin/init.go index 5f20a66..1b1c4bb 100644 --- a/example/admin/init.go +++ b/example/admin/init.go @@ -4,9 +4,10 @@ import ( . "../../../hotime" ) -var ID = "2f92h3herh23rh2y8" +var ID = "bc662f6bf19a1f3f269045167a2f273d" // Project 管理端项目 var Project = Proj{ - "user": UserCtr, + //"user": UserCtr, + "user": userCtr, } diff --git a/example/admin/user.go b/example/admin/user.go index d774457..07460bf 100644 --- a/example/admin/user.go +++ b/example/admin/user.go @@ -3,13 +3,11 @@ package admin import ( . "../../../hotime" . "../../../hotime/common" - "fmt" ) -var UserCtr = Ctr{ +var userCtr = Ctr{ "info": func(that *Context) { re := that.Db.Get(that.RouterString[1], that.MakeCode.Info(that.RouterString[1]), Map{"id": that.RouterString[2]}) - fmt.Println(that.Db.LastQuery) that.Display(0, re) }, "add": func(that *Context) { diff --git a/example/config/app.json b/example/config/app.json index 562a997..c7eefe2 100644 --- a/example/config/app.json +++ b/example/config/app.json @@ -1,5 +1,5 @@ { - "ID": "2f92h3herh23rh2y8", + "id": "bc662f6bf19a1f3f269045167a2f273d", "label": "HoTime管理平台", "menu": [ {