【新增】天猫超市商品下载同步

【修复】天猫超市发货问题
【修复】采购单单号因含特殊字符导致入库或取消失败
【修复】售后批量操作设置显示不正确
This commit is contained in:
chenping
2026-04-21 23:42:49 +08:00
parent b20d422532
commit e3d3593fdd
34 changed files with 297 additions and 251 deletions

View File

@@ -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;
}

View File

@@ -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);
}
}