瀏覽代碼

购物车

lizhen_gitee 11 月之前
父節點
當前提交
22339a25e9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);