测试
This commit is contained in:
+7
-1
@@ -21,7 +21,7 @@ type MakeCode struct {
|
||||
Error
|
||||
}
|
||||
|
||||
func (that *MakeCode) Db2JSON(name string, path string, db db.HoTimeDB) {
|
||||
func (that *MakeCode) Db2JSON(name string, path string, db *db.HoTimeDB) {
|
||||
isMake := false
|
||||
idSlice := Slice{}
|
||||
|
||||
@@ -112,6 +112,12 @@ func (that *MakeCode) Db2JSON(name string, path string, db db.HoTimeDB) {
|
||||
|
||||
}
|
||||
|
||||
if db==nil{
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
//数据库反哺
|
||||
myInit := strings.Replace(InitTpt, "{{name}}", name, -1)
|
||||
ctrList := ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user