|
@@ -1004,7 +1004,7 @@ class StoreOrder extends BaseModel
|
|
|
$product_radio = 0;
|
|
$product_radio = 0;
|
|
|
$product_info = StoreCart::where('id', $cart)->find()->toArray();
|
|
$product_info = StoreCart::where('id', $cart)->find()->toArray();
|
|
|
|
|
|
|
|
- $product = StoreProductLevel::where('id', $product_info['product_id'])->where('level_id', $user['level'])->find(); //商品返现比例
|
|
|
|
|
|
|
+ $product = StoreProductLevel::where('id', $product_info['product_id'])->where('level_id', $user['level'])->where('type',1)->find(); //商品返现比例
|
|
|
if (!empty($product)) {
|
|
if (!empty($product)) {
|
|
|
$product = $product->toArray();
|
|
$product = $product->toArray();
|
|
|
$product_radio = $product['rebate_ratio'];
|
|
$product_radio = $product['rebate_ratio'];
|