日常更新

This commit is contained in:
hoteas 2019-09-14 17:01:45 +08:00
parent f4c59d56e2
commit db70a8b5c4
2 changed files with 10 additions and 1 deletions

7
db.go
View File

@ -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
View File

@ -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",