浏览代码

购物车

lizhen_gitee 10 月之前
父节点
当前提交
42d83b7b8c
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
                     }