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

【修复】天猫超市发货问题
【修复】采购单单号因含特殊字符导致入库或取消失败
【修复】售后批量操作设置显示不正确
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

@@ -37,13 +37,17 @@ class ome_order_refund {
if($order['createway'] != 'matrix') {
return [false, ['msg'=>'非平台订单']];
}
$shop = app::get('ome')->model('shop')->db_dump(['shop_id'=>$order['shop_id']], 'node_id, node_type');
$shop = app::get('ome')->model('shop')->db_dump(['shop_id'=>$order['shop_id']], 'node_id, node_type, business_type');
if(empty($shop['node_id'])) {
return [false, ['msg'=>'店铺未绑定']];
}
if(!in_array($shop['node_type'], ['taobao'])) {
return [false, ['msg'=>'非淘宝店铺']];
}
if($shop['business_type'] == 'maochao') {
return [false, ['msg'=>'猫超国际']];
}
list($rs, $notice) = kernel::single('ome_order_refund_status')->fetch($order['order_bn'], $shop['node_id'], $order['shop_id']);
if(!$rs) {
return [true, ['msg'=>$notice['msg']]];