mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-04-11 14:55:18 +08:00
feat: 小问题修复
This commit is contained in:
@@ -75,7 +75,7 @@ func (r *redisAppImpl) Save(re *entity.Redis) {
|
||||
} else {
|
||||
// 如果存在该库,则校验修改的库是否为该库
|
||||
if err == nil {
|
||||
biz.IsTrue(re.Id == re.Id, "该库已存在")
|
||||
biz.IsTrue(oldRedis.Id == re.Id, "该库已存在")
|
||||
}
|
||||
// 先关闭数据库连接
|
||||
CloseRedis(re.Id)
|
||||
|
||||
Reference in New Issue
Block a user