更新入参数据格式
This commit is contained in:
parent
3d60732610
commit
fcb4a3b941
|
@ -217,7 +217,7 @@ class GwallWms extends BaseWms implements WmsInterface
|
||||||
$detailList = [];
|
$detailList = [];
|
||||||
foreach ($params['refund_goods'] as $item) {
|
foreach ($params['refund_goods'] as $item) {
|
||||||
array_push($detailList, [
|
array_push($detailList, [
|
||||||
'saleOrderCode' => $params['order']['order_no'],
|
'saleOrderCode' => $params['order_info']['order_no'],
|
||||||
'sku' => $item['wms_code'],
|
'sku' => $item['wms_code'],
|
||||||
'qty' => $item['sku_quantity'],
|
'qty' => $item['sku_quantity'],
|
||||||
]);
|
]);
|
||||||
|
@ -230,8 +230,8 @@ class GwallWms extends BaseWms implements WmsInterface
|
||||||
'createDate' => $params['created_at'],
|
'createDate' => $params['created_at'],
|
||||||
'logisticsCompanyCode' => strtoupper($params['express_code']),
|
'logisticsCompanyCode' => strtoupper($params['express_code']),
|
||||||
'expressNo' => $params['express_no'],
|
'expressNo' => $params['express_no'],
|
||||||
'phno' => $params['order_addr']['receive_mobile'],
|
'phno' => $params['order_address_info']['receive_mobile'],
|
||||||
'stna' => $params['order_addr']['receive_name'],
|
'stna' => $params['order_address_info']['receive_name'],
|
||||||
'goodsOwner' => $this->config['shipper_code'],
|
'goodsOwner' => $this->config['shipper_code'],
|
||||||
'remark' => $params['desc'],
|
'remark' => $params['desc'],
|
||||||
'detailList' => $detailList,
|
'detailList' => $detailList,
|
||||||
|
|
|
@ -227,19 +227,19 @@ class XinyiWms extends BaseWms implements WmsInterface
|
||||||
'returnOrderCode' => $params['refund_no'],
|
'returnOrderCode' => $params['refund_no'],
|
||||||
'warehouseCode' => $this->config['warehouse_code'],
|
'warehouseCode' => $this->config['warehouse_code'],
|
||||||
'orderType' => 'THRK',
|
'orderType' => 'THRK',
|
||||||
'preDeliveryOrderCode' => $params['order']['order_no'],
|
'preDeliveryOrderCode' => $params['order_info']['order_no'],
|
||||||
'preDeliveryOrderId' => $params['order']['order_no'],
|
'preDeliveryOrderId' => $params['order_info']['order_no'],
|
||||||
'logisticsCode' => strtoupper($params['express_code']),
|
'logisticsCode' => strtoupper($params['express_code']),
|
||||||
'logisticsName' => $params['express_company'],
|
'logisticsName' => $params['express_company'],
|
||||||
'expressCode' => $params['express_no'],
|
'expressCode' => $params['express_no'],
|
||||||
'returnReason' => $params['desc'],
|
'returnReason' => $params['desc'],
|
||||||
'senderInfo' => [
|
'senderInfo' => [
|
||||||
'name' => $params['order_addr']['receive_name'],
|
'name' => $params['order_address_info']['receive_name'],
|
||||||
'mobile' => $params['order_addr']['receive_mobile'],
|
'mobile' => $params['order_address_info']['receive_mobile'],
|
||||||
'province' => $params['order_addr']['receive_province'],
|
'province' => $params['order_address_info']['receive_province'],
|
||||||
'city' => $params['order_addr']['receive_city'],
|
'city' => $params['order_address_info']['receive_city'],
|
||||||
'area' => $params['order_addr']['receive_district'],
|
'area' => $params['order_address_info']['receive_district'],
|
||||||
'detailAddress' => $params['order_addr']['receive_address'],
|
'detailAddress' => $params['order_address_info']['receive_address'],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'orderLines' => [],
|
'orderLines' => [],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user