lizhen_gitee 10 miesięcy temu
rodzic
commit
42d83b7b8c
1 zmienionych plików z 1 dodań i 0 usunięć
  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;
                     }