修改获取sql db连接逻辑

This commit is contained in:
junleea 2025-10-02 21:32:57 +08:00
parent 770cde41bd
commit dae8a96478
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ func GetGORMDBObject(dbmInfo *proto.DBManage) (db_ *gorm.DB, err error) {
}
dao.DBMMapRWMutex.Lock()
var dbValue *proto.DBValue
var dbValue proto.DBValue
dbValue.Value = db_
dbValue.LastUserTime = worker.GetCurrentTimestamp()
dao.DBMMap[dbmInfo.ID] = dbValue
dao.DBMMap[dbmInfo.ID] = &dbValue
dao.DBMMapRWMutex.Unlock()
return db_, err
}