Browse Source

购物车

lizhen_gitee 10 tháng trước cách đây
mục cha
commit
42d83b7b8c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      addons/unishop/extend/Product.php

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

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