feat(CommissionProductLogic): updated user ship condition, added in_array check for user_ship, improved code quality

This commit is contained in:
mkm 2024-09-19 22:06:30 +08:00
parent 7a7c9c2ad7
commit fe10a63fe0

View File

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