From fe10a63fe057cd2c28ffd1590d0f2609cd1178bb Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 19 Sep 2024 22:06:30 +0800 Subject: [PATCH] feat(CommissionProductLogic): updated user ship condition, added in_array check for user_ship, improved code quality --- app/common/logic/CommissionProductLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/logic/CommissionProductLogic.php b/app/common/logic/CommissionProductLogic.php index 89501347..6fda2101 100644 --- a/app/common/logic/CommissionProductLogic.php +++ b/app/common/logic/CommissionProductLogic.php @@ -40,7 +40,7 @@ class CommissionProductLogic extends BaseLogic $this->a($find, $order, $village_uid, $brigade_uid, $user_ship, $product); return true; } - } elseif ($user_ship == 0||$user_ship == 4) { + } elseif ($user_ship == 0|| in_array($user_ship, [4,6,7])) { //普通用户利润全部给门店 $this->b($find, $order, $product, $user_ship); return true;