瀏覽代碼

Merge branch 'release_20250121' of Fengwo/hotline into release

新增区域时的验证
tangjiang 3 月之前
父節點
當前提交
bc6e402e59
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Hotline.Api/Controllers/SysController.cs

+ 1 - 1
src/Hotline.Api/Controllers/SysController.cs

@@ -405,7 +405,7 @@ namespace Hotline.Api.Controllers
             {
                 throw UserFriendlyException.SameMessage("只允许添加乡镇、街道数据,请选择区县");
             }
-            if (model.ParentId.Substring(6, 2) == "00")
+            if (model.ParentId.Substring(4, 2) == "00")
             {
                 throw UserFriendlyException.SameMessage("只允许添加乡镇、街道数据,请选择区县");
             }