@@ -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 += "城市-未填";