From c9684b2f8b44242ea8643d56f2bba1c5c834029d Mon Sep 17 00:00:00 2001 From: lewis <604446095@qq.com> Date: Fri, 14 Mar 2025 17:37:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=95=86=E5=93=81=E6=BA=AF?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/product_source_link/ProductSourceLinkLogic.php | 2 +- app/common/logic/PayNotifyLogic.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/logic/product_source_link/ProductSourceLinkLogic.php b/app/admin/logic/product_source_link/ProductSourceLinkLogic.php index 1d4af914c..ca4c02d7a 100644 --- a/app/admin/logic/product_source_link/ProductSourceLinkLogic.php +++ b/app/admin/logic/product_source_link/ProductSourceLinkLogic.php @@ -120,7 +120,7 @@ class ProductSourceLinkLogic extends BaseLogic public static function outbound(array $info) { $query = ProductSourceLinkInfo::where('product_id', $info['product']['product_id'])->where('current_nums', '>', 0); - if (!empty($info['store_id'])) { + if (!empty($info['is_store_order']) && $info['store_id']) { $query->where('store_id', $info['store_id'])->whereIn('types', [ProductSourceLinkInfo::TypeStoreIn, ProductSourceLinkInfo::TypeS2S]); } else { $query->whereIn('types', [ProductSourceLinkInfo::TypeIn, ProductSourceLinkInfo::TypeS2W, ProductSourceLinkInfo::TypeW2W]); diff --git a/app/common/logic/PayNotifyLogic.php b/app/common/logic/PayNotifyLogic.php index b9f3d4093..47d62a75a 100644 --- a/app/common/logic/PayNotifyLogic.php +++ b/app/common/logic/PayNotifyLogic.php @@ -646,6 +646,7 @@ class PayNotifyLogic extends BaseLogic 'product_id' => $v['product_id'], 'nums' => $v['cart_num'], ], + 'is_store_order' => true, 'store_id' => $v['store_id'], 'link_id' => $v['id'], 'types' => ProductSourceLinkInfo::TypeOrder,