Browse Source

移动端添加文档比对bug

xyxie 1 year ago
parent
commit
1e392026c7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      models/db.go

+ 4 - 1
models/db.go

@@ -43,7 +43,7 @@ func init() {
 	data_db, _ := orm.GetDB("data")
 	data_db.SetConnMaxLifetime(10 * time.Minute)
 
-	_ = orm.RegisterDataBase("eta", "mysql", utils.MYSQL_URL_EDB)
+	_ = orm.RegisterDataBase("eta", "mysql", utils.MYSQL_URL_ETA)
 	orm.SetMaxIdleConns("eta", 50)
 	orm.SetMaxOpenConns("eta", 100)
 
@@ -88,6 +88,9 @@ func init() {
 
 	// 沙盘推演
 	initSandbox()
+
+	// 文档对比
+	initSaCompare()
 }
 
 // initSystem 系统表 数据表