WIN-2308041133\Administrator 4 months ago
parent
commit
2fc278dfd8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/models/store/StoreProduct.php

+ 2 - 2
app/models/store/StoreProduct.php

@@ -289,13 +289,13 @@ class StoreProduct extends BaseModel
                 return $isSingle ? $list : 0;
         //当$list为数组时$isSingle==true为一维数组 ,否则为二维
         if ($isSingle) {
-            if ($list['is_Inclusive'] == 0 && $list['is_points'] == 0 && $list['is_explosive'] == 0) {
+            if ($list['is_inclusive'] == 0 && $list['is_points'] == 0 && $list['is_explosive'] == 0) {
 
                 $list['vip_price'] = isset($list['price']) ? bcsub($list['price'], bcmul($discount, $list['price'], 2), 2) : 0;
             }
         } else {
             foreach ($list as &$item) {
-                if ($item['is_Inclusive'] == 0 && $item['is_points'] == 0 && $item['is_explosive'] == 0) {
+                if ($item['is_inclusive'] == 0 && $item['is_points'] == 0 && $item['is_explosive'] == 0) {
 //                @file_put_contents('quanju.txt',  json_encode($item)."-5\r\n", 8);
                     $item['vip_price'] = isset($item['price']) ? bcsub($item['price'], bcmul($discount, $item['price'], 2), 2) : 0;
                 }