修复bug
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"../../hotime"
|
||||
"../../hotime/common"
|
||||
"../dri/ddsms"
|
||||
"./admin"
|
||||
"./app"
|
||||
"fmt"
|
||||
@@ -140,6 +141,9 @@ func main() {
|
||||
|
||||
//makeCode := code.MakeCode{}
|
||||
//fmt.Println(common.ObjToStr(makeCode.Db2JSON("admin","test",appIns.Db)))
|
||||
if ddsms.DefaultDDY.ApiKey == "" {
|
||||
ddsms.DefaultDDY.Init(appIns.Config.GetString("smsKey"))
|
||||
}
|
||||
|
||||
appIns.Run(hotime.Router{
|
||||
"admin": admin.Project,
|
||||
|
||||
Reference in New Issue
Block a user