|
|
@@ -341,14 +341,14 @@ class StoreProduct extends BaseModel
|
|
|
// }
|
|
|
if ($isSingle) {
|
|
|
if ($list['is_inclusive'] == 1 || $list['is_points'] == 1 || $list['is_explosive'] == 1) {
|
|
|
- $discount=1;
|
|
|
+ $discount=0;
|
|
|
}
|
|
|
$list['vip_price'] = isset($list['price']) ? bcsub($list['price'], bcmul($discount, $list['price'], 2), 2) : 0;
|
|
|
@file_put_contents('quanju.txt', $list['vip_price'] . "-vip价格\r\n", 8);
|
|
|
} else {
|
|
|
foreach ($list as &$item) {
|
|
|
if ($list['is_inclusive'] == 1 || $list['is_points'] == 1 || $list['is_explosive'] == 1) {
|
|
|
- $discount=1;
|
|
|
+ $discount=0;
|
|
|
}
|
|
|
$item['vip_price'] = isset($item['price']) ? bcsub($item['price'], bcmul($discount, $item['price'], 2), 2) : 0;
|
|
|
@file_put_contents('quanju.txt', $item['vip_price'] . "-数组vip价格\r\n", 8);
|