Browse Source

购物车

lizhen_gitee 11 tháng trước cách đây
mục cha
commit
22339a25e9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      addons/unishop/controller/Cart.php

+ 1 - 1
addons/unishop/controller/Cart.php

@@ -67,7 +67,7 @@ class Cart extends Base
         $data = [];
         $productExtend = new \addons\unishop\extend\Product;
 
-        $choose_price_total = 0;//已选中的总价格
+        $choose_price_total = '0';//已选中的总价格
         $choose_number = 0;//已选中的个数
         foreach ($carts as $item) {
             $oldProduct = json_decode($item['snapshot'], true);