优化代码
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
},
|
||||
"db": {
|
||||
"mysql": {
|
||||
"host": "cloud.hoteas.com",
|
||||
"name": "ljf",
|
||||
"host": "192.168.6.250",
|
||||
"name": "reg_gqt",
|
||||
"password": "root",
|
||||
"port": "3306",
|
||||
"prefix": "",
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"../../hotime"
|
||||
//"./admin"
|
||||
"./admin"
|
||||
"errors"
|
||||
"fmt"
|
||||
"golang.org/x/net/websocket"
|
||||
@@ -58,7 +58,7 @@ func main() {
|
||||
//fmt.Println(common.ObjToStr(makeCode.Db2JSON("admin","test",appIns.Db)))
|
||||
|
||||
appIns.Run(hotime.Router{
|
||||
//"admin": admin.Project,
|
||||
"admin": admin.Project,
|
||||
"app": hotime.Proj{
|
||||
"index": hotime.Ctr{
|
||||
"test": func(this *hotime.Context) {
|
||||
|
||||
Reference in New Issue
Block a user