change database config
This commit is contained in:
@@ -46,6 +46,8 @@ func NewConnection(config Config) (*DB, error) {
|
||||
NowFunc: func() time.Time {
|
||||
return time.Now().In(time.FixedZone("CST", 8*3600)) // 强制使用北京时间
|
||||
},
|
||||
PrepareStmt: true,
|
||||
DisableAutomaticPing: false,
|
||||
}
|
||||
|
||||
// 连接数据库
|
||||
|
||||
Reference in New Issue
Block a user