|
@@ -17,14 +17,6 @@ func init() {
|
|
|
db, _ := orm.GetDB("default")
|
|
|
db.SetConnMaxLifetime(10 * time.Minute)
|
|
|
|
|
|
- _ = orm.RegisterDataBase("rddp", "mysql", utils.MYSQL_URL_RDDP)
|
|
|
- orm.SetMaxIdleConns("rddp", 50)
|
|
|
- orm.SetMaxOpenConns("rddp", 100)
|
|
|
-
|
|
|
- report_db, _ := orm.GetDB("rddp")
|
|
|
- report_db.SetConnMaxLifetime(10 * time.Minute)
|
|
|
-
|
|
|
-
|
|
|
//注册对象
|
|
|
orm.RegisterModel(
|
|
|
new(WxUser),
|