Browse Source

购物车

lizhen_gitee 10 months ago
parent
commit
802c0642e5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      addons/unishop/extend/Product.php

+ 2 - 0
addons/unishop/extend/Product.php

@@ -37,6 +37,8 @@ class Product
                         $data = $specItem[$key];
                     } else {
                         $specItem['stock'] = intval($specItem['stock']);
+                        $specItem['sales'] = intval($specItem['sales']);
+
                         $data = $specItem;
                         $data['key'] = $k;
                     }