From eda883a33b5cd8c332514eb0dbe28c8a43e53bfe Mon Sep 17 00:00:00 2001 From: ZweiCD <416931358@qq.com> Date: Wed, 8 Apr 2020 18:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E8=B4=A7=E4=BA=BA?= =?UTF-8?q?=E5=BF=AB=E9=80=92=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/QimenWms.php | 4 ++-- src/XinyiWms.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/QimenWms.php b/src/QimenWms.php index e89dd8d..855463c 100644 --- a/src/QimenWms.php +++ b/src/QimenWms.php @@ -51,7 +51,7 @@ class QimenWms extends BaseWms implements WmsInterface 'shopNick' => $order['order_sender_info']['shop_name'] ?? static::$default_shop_name, 'sellerNick' => $order['order_sender_info']['shop_name'] ?? static::$default_seller_nick, 'remark' => $order['remark'], - 'logisticsCode' => $order['order_sender_info']['order_express'] ?? '', + 'logisticsCode' => $order['order_sender_info']['logistics_code'] ?? '', //发货人信息 'senderInfo' => [ 'name' => $order['order_sender_info']['name'] ?? static::$default_sender_name, @@ -107,7 +107,7 @@ class QimenWms extends BaseWms implements WmsInterface } } $postData = array_merge($postData, ['orderLines' => ['orderLine' => $orderLine]]); - if (!isset($order['order_sender_info']['order_express']) || !$order['order_sender_info']['order_express']) { + if (!isset($order['order_sender_info']['logistics_code']) || !$order['order_sender_info']['logistics_code']) { $postData['deliveryOrder'] = array_merge($postData['deliveryOrder'], ['logisticsCode' => $this->chooseLogisticsCompany($order['order_address']['receive_province'], $skuTotalWeight)]); } diff --git a/src/XinyiWms.php b/src/XinyiWms.php index abb7f44..1560f2a 100644 --- a/src/XinyiWms.php +++ b/src/XinyiWms.php @@ -52,7 +52,7 @@ class XinyiWms extends BaseWms implements WmsInterface 'shopNick' => $order['order_sender_info']['shop_name'] ?? self::DEFAULT_SHOP_NAME, 'sellerNick' => $order['order_sender_info']['shop_name'] ?? self::DEFAULT_SELLER_NICK, 'remark' => $order['remark'], - 'logisticsCode' => $order['order_sender_info']['order_express'] ?? '', + 'logisticsCode' => $order['order_sender_info']['logistics_code'] ?? '', //发货人信息 'senderInfo' => [ 'name' => $order['order_sender_info']['name'] ?? self::DEFAULT_SENDER_NAME, @@ -114,7 +114,7 @@ class XinyiWms extends BaseWms implements WmsInterface } } $postData = array_merge($postData, ['orderLines' => ['orderLine' => $orderLine]]); - if (!isset($order['order_sender_info']['order_express']) || !$order['order_sender_info']['order_express']) { + if (!isset($order['order_sender_info']['logistics_code']) || !$order['order_sender_info']['logistics_code']) { $postData['deliveryOrder'] = array_merge($postData['deliveryOrder'], ['logisticsCode' => $this->chooseLogisticsCompany($order['order_address']['receive_province'], $skuTotalWeight)]); }