|
@@ -55,10 +55,13 @@ namespace XYY.Service.Standard.ChannelApi.Sengi.Shiphubx
|
|
|
order.Height = 1;
|
|
|
if (order.Length < 1)
|
|
|
order.Length = 1;
|
|
|
- if (order.ChannelId!= 887&&( order.ReceiverZipCode.StartsWith("115") || order.ReceiverZipCode.StartsWith("117") || order.ReceiverZipCode.StartsWith("119"))
|
|
|
+ if (order.ChannelId!= 887//这个不限邮编
|
|
|
)
|
|
|
{
|
|
|
- throw new Exception("该邮编暂无服务");
|
|
|
+ if(order.ReceiverZipCode.StartsWith("115") || order.ReceiverZipCode.StartsWith("117") || order.ReceiverZipCode.StartsWith("119"))
|
|
|
+ throw new Exception("该邮编暂无服务");
|
|
|
+ else if(order.ChannelId==939&&(order.ReceiverZipCode.StartsWith("48") || order.ReceiverZipCode.StartsWith("18")))
|
|
|
+ throw new Exception("该邮编暂无服务");//这个渠道多限制两个邮编
|
|
|
}
|
|
|
string url = channel.ApiHost;
|
|
|
RestClient client = new RestClient(url);
|