feat(CommissionProductLogic): 修改了CommissionProductLogic类中的判断条件,移除了用户船只类型5的判断,改为判断商品的顶级分类ID是否为15189。
This commit is contained in:
parent
665f56cee9
commit
f55d444799
@ -23,13 +23,20 @@ class CommissionProductLogic extends BaseLogic
|
|||||||
{
|
{
|
||||||
$product = StoreProduct::where('id', $find['product_id'])->find();
|
$product = StoreProduct::where('id', $find['product_id'])->find();
|
||||||
if ($product && $product['rose'] > 0) {
|
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);
|
$this->b($find, $order, $product);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ($product['rose'] < 8) {
|
if ($product['rose'] < 8) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} 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);
|
$this->a($find, $order, $village_uid, $brigade_uid, $user_ship, $product);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user