瀏覽代碼

调整限制邮编

lzk 1 月之前
父節點
當前提交
055be5beef
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      3.Service/XYY.Service.Standard.ChannelApi/Shiphubx/Api.cs

+ 5 - 2
3.Service/XYY.Service.Standard.ChannelApi/Shiphubx/Api.cs

@@ -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);