日常更新
This commit is contained in:
parent
f4c59d56e2
commit
db70a8b5c4
7
db.go
7
db.go
@ -119,6 +119,13 @@ func (this *HoTimeDB) Row(resl *sql.Rows) []Map {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//防止int被误读为float64
|
||||||
|
jlis,e:=json.Marshal(lis)
|
||||||
|
if e!=nil{
|
||||||
|
this.LastErr.SetError(e)
|
||||||
|
}else{
|
||||||
|
lis.JsonToMap(string(jlis),&this.LastErr)
|
||||||
|
}
|
||||||
|
|
||||||
dest = append(dest, lis)
|
dest = append(dest, lis)
|
||||||
|
|
||||||
|
4
var.go
4
var.go
@ -21,7 +21,9 @@ var Config = Map{
|
|||||||
"cacheShortTime": 60 * 60 * 2,
|
"cacheShortTime": 60 * 60 * 2,
|
||||||
"cacheLongTime": 60 * 60 * 24 * 30,
|
"cacheLongTime": 60 * 60 * 24 * 30,
|
||||||
"sessionName": "HOTIME",
|
"sessionName": "HOTIME",
|
||||||
"error": Map{},
|
"error": Map{
|
||||||
|
"1":"系统错误",
|
||||||
|
},
|
||||||
"debug":1,//debug 0关闭1开启
|
"debug":1,//debug 0关闭1开启
|
||||||
"modeRouterStrict":false,//路由严格模式/a/b/c
|
"modeRouterStrict":false,//路由严格模式/a/b/c
|
||||||
"tlsPort":"0",
|
"tlsPort":"0",
|
||||||
|
Loading…
Reference in New Issue
Block a user