修改发货人快递字段

This commit is contained in:
ZweiCD 2020-04-08 18:52:24 +08:00
parent 6ebf5df603
commit eda883a33b
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ class QimenWms extends BaseWms implements WmsInterface
'shopNick' => $order['order_sender_info']['shop_name'] ?? static::$default_shop_name, 'shopNick' => $order['order_sender_info']['shop_name'] ?? static::$default_shop_name,
'sellerNick' => $order['order_sender_info']['shop_name'] ?? static::$default_seller_nick, 'sellerNick' => $order['order_sender_info']['shop_name'] ?? static::$default_seller_nick,
'remark' => $order['remark'], 'remark' => $order['remark'],
'logisticsCode' => $order['order_sender_info']['order_express'] ?? '', 'logisticsCode' => $order['order_sender_info']['logistics_code'] ?? '',
//发货人信息 //发货人信息
'senderInfo' => [ 'senderInfo' => [
'name' => $order['order_sender_info']['name'] ?? static::$default_sender_name, '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]]); $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)]); $postData['deliveryOrder'] = array_merge($postData['deliveryOrder'], ['logisticsCode' => $this->chooseLogisticsCompany($order['order_address']['receive_province'], $skuTotalWeight)]);
} }

View File

@ -52,7 +52,7 @@ class XinyiWms extends BaseWms implements WmsInterface
'shopNick' => $order['order_sender_info']['shop_name'] ?? self::DEFAULT_SHOP_NAME, 'shopNick' => $order['order_sender_info']['shop_name'] ?? self::DEFAULT_SHOP_NAME,
'sellerNick' => $order['order_sender_info']['shop_name'] ?? self::DEFAULT_SELLER_NICK, 'sellerNick' => $order['order_sender_info']['shop_name'] ?? self::DEFAULT_SELLER_NICK,
'remark' => $order['remark'], 'remark' => $order['remark'],
'logisticsCode' => $order['order_sender_info']['order_express'] ?? '', 'logisticsCode' => $order['order_sender_info']['logistics_code'] ?? '',
//发货人信息 //发货人信息
'senderInfo' => [ 'senderInfo' => [
'name' => $order['order_sender_info']['name'] ?? self::DEFAULT_SENDER_NAME, '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]]); $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)]); $postData['deliveryOrder'] = array_merge($postData['deliveryOrder'], ['logisticsCode' => $this->chooseLogisticsCompany($order['order_address']['receive_province'], $skuTotalWeight)]);
} }