Showing
1 changed file
with
1 additions
and
1 deletions
@@ -599,7 +599,7 @@ class CartModel | @@ -599,7 +599,7 @@ class CartModel | ||
599 | $result['goods'][] = $oneGoods; | 599 | $result['goods'][] = $oneGoods; |
600 | } | 600 | } |
601 | // 赠品 | 601 | // 赠品 |
602 | - count($data['gift_list']) && $result['freebieOrAdvanceBuy'] = true; | 602 | + (count($data['gift_list']) || count($data['price_gift'])) && $result['freebieOrAdvanceBuy'] = true; |
603 | $result['freebie'] = $data['gift_list']; | 603 | $result['freebie'] = $data['gift_list']; |
604 | // 加价购 | 604 | // 加价购 |
605 | $result['advanceBuy'] = $data['price_gift']; | 605 | $result['advanceBuy'] = $data['price_gift']; |
-
Please register or login to post a comment