diff --git a/src/GwallWms.php b/src/GwallWms.php index 17ea2cb..13884ba 100644 --- a/src/GwallWms.php +++ b/src/GwallWms.php @@ -217,7 +217,7 @@ class GwallWms extends BaseWms implements WmsInterface $detailList = []; foreach ($params['refund_goods'] as $item) { array_push($detailList, [ - 'saleOrderCode' => $params['order']['order_no'], + 'saleOrderCode' => $params['order_info']['order_no'], 'sku' => $item['wms_code'], 'qty' => $item['sku_quantity'], ]); @@ -230,8 +230,8 @@ class GwallWms extends BaseWms implements WmsInterface 'createDate' => $params['created_at'], 'logisticsCompanyCode' => strtoupper($params['express_code']), 'expressNo' => $params['express_no'], - 'phno' => $params['order_addr']['receive_mobile'], - 'stna' => $params['order_addr']['receive_name'], + 'phno' => $params['order_address_info']['receive_mobile'], + 'stna' => $params['order_address_info']['receive_name'], 'goodsOwner' => $this->config['shipper_code'], 'remark' => $params['desc'], 'detailList' => $detailList, diff --git a/src/XinyiWms.php b/src/XinyiWms.php index 2c97a95..aa89c1c 100644 --- a/src/XinyiWms.php +++ b/src/XinyiWms.php @@ -227,19 +227,19 @@ class XinyiWms extends BaseWms implements WmsInterface 'returnOrderCode' => $params['refund_no'], 'warehouseCode' => $this->config['warehouse_code'], 'orderType' => 'THRK', - 'preDeliveryOrderCode' => $params['order']['order_no'], - 'preDeliveryOrderId' => $params['order']['order_no'], + 'preDeliveryOrderCode' => $params['order_info']['order_no'], + 'preDeliveryOrderId' => $params['order_info']['order_no'], 'logisticsCode' => strtoupper($params['express_code']), 'logisticsName' => $params['express_company'], 'expressCode' => $params['express_no'], 'returnReason' => $params['desc'], 'senderInfo' => [ - 'name' => $params['order_addr']['receive_name'], - 'mobile' => $params['order_addr']['receive_mobile'], - 'province' => $params['order_addr']['receive_province'], - 'city' => $params['order_addr']['receive_city'], - 'area' => $params['order_addr']['receive_district'], - 'detailAddress' => $params['order_addr']['receive_address'], + 'name' => $params['order_address_info']['receive_name'], + 'mobile' => $params['order_address_info']['receive_mobile'], + 'province' => $params['order_address_info']['receive_province'], + 'city' => $params['order_address_info']['receive_city'], + 'area' => $params['order_address_info']['receive_district'], + 'detailAddress' => $params['order_address_info']['receive_address'], ], ], 'orderLines' => [],