Browse Source

新增区域查询

tangjiang 3 months ago
parent
commit
7cf85a44b5
1 changed files with 1 additions and 1 deletions
  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("只允许添加乡镇、街道数据,请选择区县");
             }