feat(CommissionProductLogic): 修改了CommissionProductLogic类中的判断条件,移除了用户船只类型5的判断,改为判断商品的顶级分类ID是否为15189。

This commit is contained in:
mkm 2024-07-29 17:09:05 +08:00
parent 665f56cee9
commit f55d444799

View File

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