From 6f813645f21c66fa443eb189b8829907de46823f Mon Sep 17 00:00:00 2001 From: songzhibin97 <718428482@qq.com> Date: Wed, 8 Dec 2021 13:16:25 +0800 Subject: [PATCH] fix:conflict --- server/initialize/db_list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/initialize/db_list.go b/server/initialize/db_list.go index 5b20456e..d976b12c 100644 --- a/server/initialize/db_list.go +++ b/server/initialize/db_list.go @@ -5,7 +5,7 @@ import ( "gorm.io/gorm" ) -const system = "system" +const sys = "system" func DBList() { dbMap := make(map[string]*gorm.DB) @@ -24,7 +24,7 @@ func DBList() { } // 做特殊判断,是否有迁移 // 适配低版本迁移多数据库版本 - if sysDB, ok := dbMap[system]; ok { + if sysDB, ok := dbMap[sys]; ok { global.GVA_DB = sysDB } global.GVA_DBList = dbMap