From f55d444799cb3e1823ed92f980d8e79099ae70b1 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 29 Jul 2024 17:09:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(CommissionProductLogic):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BA=86CommissionProductLogic=E7=B1=BB=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E4=BA=86=E7=94=A8=E6=88=B7=E8=88=B9=E5=8F=AA=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B5=E7=9A=84=E5=88=A4=E6=96=AD=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=88=A4=E6=96=AD=E5=95=86=E5=93=81=E7=9A=84=E9=A1=B6?= =?UTF-8?q?=E7=BA=A7=E5=88=86=E7=B1=BBID=E6=98=AF=E5=90=A6=E4=B8=BA15189?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/CommissionProductLogic.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/common/logic/CommissionProductLogic.php b/app/common/logic/CommissionProductLogic.php index aed11e9f7..acf3c2cf8 100644 --- a/app/common/logic/CommissionProductLogic.php +++ b/app/common/logic/CommissionProductLogic.php @@ -23,13 +23,20 @@ class CommissionProductLogic extends BaseLogic { $product = StoreProduct::where('id', $find['product_id'])->find(); if ($product && $product['rose'] > 0) { - if (in_array($user_ship, [4, 5,6, 7])) { + if (in_array($user_ship, [4, 6, 7])) { $this->b($find, $order, $product); return true; } if ($product['rose'] < 8) { return false; } else { + if($user_ship==5){ + $top_cate_id=StoreBranchProduct::where('product_id',$find['product_id'])->value('top_cate_id'); + if($top_cate_id==15189){ + $this->b($find, $order, $product); + return true; + } + } $this->a($find, $order, $village_uid, $brigade_uid, $user_ship, $product); } return true;