|
@@ -267,7 +267,7 @@ class StoreCart extends BaseModel
|
|
|
$cart['truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'], $uid, true);
|
|
|
$cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'], $uid);
|
|
|
|
|
|
- $discounts = json_decode($product['time_area_discount'], true);
|
|
|
+ $discounts = json_decode($product['time_area_discount'] ?: '[]', true);
|
|
|
$discount = 0;
|
|
|
if (count($discounts) > 0) {
|
|
|
foreach ($discounts as $kk => $v) {
|