修改商品分组价判断
This commit is contained in:
parent
a034ae5ec1
commit
c91434d54f
@ -102,7 +102,9 @@ class OrderLogic extends BaseLogic
|
|||||||
$find = StoreBranchProduct::where(['product_id' => $v['product_id'], 'store_id' => $params['store_id']])->field($field)->find();
|
$find = StoreBranchProduct::where(['product_id' => $v['product_id'], 'store_id' => $params['store_id']])->field($field)->find();
|
||||||
} else {
|
} else {
|
||||||
$find = StoreProduct::where(['id' => $v['product_id']])->field($field)->find();
|
$find = StoreProduct::where(['id' => $v['product_id']])->field($field)->find();
|
||||||
$find = StoreProductGroupPrice::resetProductPrice($find, $user['user_ship']);
|
if (!empty($user['user_ship'])) {
|
||||||
|
$find = StoreProductGroupPrice::resetProductPrice($find, $user['user_ship']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!$find) {
|
if (!$find) {
|
||||||
throw new BusinessException('商品不存在');
|
throw new BusinessException('商品不存在');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user