Quellcode durchsuchen

空派下单限制调整

lzk vor 1 Monat
Ursprung
Commit
acd9ea764b

+ 5 - 0
3.Service/XYY.Service.Standard.Order/IMoreThanOneTicketService.cs

@@ -146,6 +146,11 @@ namespace XYY.Service.Standard.Order
                 {
                     error += "收件人国家-未填";
                 }
+                if (!string.IsNullOrEmpty(item.ReceiverCountryCode)&& (!Regex.IsMatch(item.ReceiverCountryCode, "^[a-zA-Z]+$")||item.ReceiverCountryCode.Length>2))
+                {
+                    error += "收件人国家-仅支持二字代码";
+                }
+
                 if (string.IsNullOrEmpty(item.ReceiverCity))
                 {
                     error += "城市-未填";