sunpengfei
2025-08-05 bde9fd85641630fe232ba512aba26cf91cb0bc9f
fix:bug
2个文件已修改
5 ■■■■ 已修改文件
FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
FlexJobApi.Core/Utils/ResourceUtils/ResourceUtils.cs
@@ -6,6 +6,7 @@
using Furion.FriendlyException;
using Mapster;
using MediatR;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ActionConstraints;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Routing;
@@ -13,6 +14,7 @@
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
@@ -146,6 +148,7 @@
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.ComponentModel;
namespace {controller.Key.ApplicationName}
{{
FlexJobApi.User.Application/Menus/Commands/SaveMenuFieldCommandHandler.cs
@@ -40,7 +40,7 @@
            {
                var entity = new Menu();
                entity.Path = $"{parent.Path}{parent.Code}/";
                entity.Type = EnumMenuType.Button;
                entity.Type = EnumMenuType.Field;
                entity.VisitLevel = parent.VisitLevel;
                request.Adapt(entity);
                if (await CheckExist(entity)) throw Oops.Oh(EnumErrorCodeType.s405, "菜单编号");