mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-28 19:55:30 +08:00
【新增】天猫超市商品下载同步
【修复】天猫超市发货问题 【修复】采购单单号因含特殊字符导致入库或取消失败 【修复】售后批量操作设置显示不正确
This commit is contained in:
@@ -39,6 +39,39 @@ class erpapi_shop_response_bookingrefund extends erpapi_shop_response_abstract {
|
||||
'oid_list' => $params['oid_list'],
|
||||
'refundStatus' => $params['refundStatus'] ? : 1,
|
||||
'shop_id' => $this->__channelObj->channel['shop_id'],
|
||||
'sub_business_type' => [],
|
||||
];
|
||||
|
||||
if ( is_array($this->__channelObj->channel['config']) && $this->__channelObj->channel['config']['sub_business_type'] ) {
|
||||
$sdf['sub_business_type'] = (array) $this->__channelObj->channel['config']['sub_business_type'];
|
||||
}
|
||||
|
||||
return $sdf;
|
||||
}
|
||||
|
||||
public function fxordermsg($params){
|
||||
// shopbee供销供应商订单信息同步
|
||||
$this->__apilog['title'] = '供销供应商订单信息同步';
|
||||
$this->__apilog['original_bn'] = $params['bizOrderCode'];
|
||||
if (empty($params['bizOrderCode'])) {
|
||||
return array('rsp' => 'fail', 'msg' => '业务单号不能为空');
|
||||
}
|
||||
$sdf = [
|
||||
'order_bn' => $params['bizOrderCode'],
|
||||
'shop_id' => $this->__channelObj->channel['shop_id'],
|
||||
'supplierName' => $params['supplierName'],
|
||||
'buyerComments' => $params['buyerComments'],
|
||||
'supplierId' => $params['supplierId'],
|
||||
'sellerId' => $params['sellerId'],
|
||||
'bizType' => $params['bizType'],
|
||||
'outBizCode' => $params['outBizCode'],
|
||||
'extraContent' => $params['extraContent'],
|
||||
'sellerComments' => $params['sellerComments'],
|
||||
'sellerName' => $params['sellerName'],
|
||||
'bizOrderCode' => $params['bizOrderCode'],
|
||||
'deliverRequirement' => $params['deliverRequirement'],
|
||||
'appointArrivedTime' => $params['appointArrivedTime'],
|
||||
'appointDeliveryTime' => $params['appointDeliveryTime'],
|
||||
];
|
||||
return $sdf;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,12 @@ class erpapi_shop_response_process_bookingrefund{
|
||||
}else{ //异步asynchronous
|
||||
$orderInfo['pause_status'] = $pause_status;
|
||||
$ret = $this->ordermsg_back($orderInfo, $params);
|
||||
|
||||
// 如果是猫超主站退款回告成功,直接退款
|
||||
if ($ret['rsp'] == 'succ' && in_array('MCZZ', (array) $params['sub_business_type'])) {
|
||||
$this->_dealRefund($orderInfo);
|
||||
}
|
||||
|
||||
return array('rsp'=>'succ', 'msg' => $ret);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user