瀏覽代碼

东莞fedex改为etd 对接

lzk 6 天之前
父節點
當前提交
b0940b3b1f

+ 4 - 0
3.Service/XYY.Service.Standard.ChannelApi/ChinaPost/ChinaPostOrder.cs

@@ -109,6 +109,10 @@ namespace XYY.Service.Standard.ChinaPost
         /// </summary>
         public string packaging_type { get; set; }
         /// <summary>
+        /// etd标识
+        /// </summary>
+        public string etd { get; set; }
+        /// <summary>
         /// 0-GIFT;1-SOLD;2-SAMPLE;4-NOT_SOLD;5-PERSONAL_EFFECTS;6-REPAIR_AND_RETURN
         /// </summary>
         public string mail_flag { get; set; }

+ 5 - 0
3.Service/XYY.Service.Standard.ChannelApi/ChinaPost/GatewayApi.cs

@@ -238,6 +238,11 @@ namespace XYY.Service.Standard.ChannelApi.ChinaPost
                 declare_curr_code = DeclareCurrency
 
             };
+            //改用etd方式对接
+            if (channel.PublicName.Contains("FEDEX"))
+            {
+                post.etd = "1";
+            }
             post.sender = new Sender
             {
                 name = channel.SenderName,