refactor: 移除冗余错误日志并优化缓存获取逻辑
This commit is contained in:
@@ -68,7 +68,7 @@ func (r SysMenu) SelectByIds(menuIds []int64) []model.SysMenu {
|
||||
// Insert 新增信息
|
||||
func (r SysMenu) Insert(sysMenu model.SysMenu) int64 {
|
||||
sysMenu.DelFlag = "0"
|
||||
if sysMenu.MenuId <= 0 {
|
||||
if sysMenu.MenuId > 0 {
|
||||
return 0
|
||||
}
|
||||
if sysMenu.Icon == "" {
|
||||
|
||||
Reference in New Issue
Block a user