Browse Source

购物车

lizhen_gitee 11 months ago
parent
commit
22339a25e9
1 changed files with 1 additions and 1 deletions
  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);