瀏覽代碼

Merge branch 'develop' of http://132.232.92.186:3000/XinXiBu/OA2023 into develop

Lyyyi 6 天之前
父節點
當前提交
625c4bda91

+ 1 - 3
OASystem/OASystem.Infrastructure/Repositories/Groups/CarTouristGuideGroundRepository.cs

@@ -1172,8 +1172,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     }
                 }
 
-                Regex regex = new Regex("^[\u4e00-\u9fa5]{0,}$");
-
                 //城市税排除计算
                 var excludeList = new List<int>(); // { 1452  }
 
@@ -1183,7 +1181,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 c.PaymentCurrency = dto.Currency;
                 for (int i = 0; i < dto.SelectCheck.Count; i++)
                 {
-                    if (!regex.IsMatch(dto.SelectCheck[i]))
+                    if (int.TryParse(dto.SelectCheck[i], out _))
                     {
                         for (int j = 0; j < carTouristList.Count; j++)
                         {