lizhen_gitee 10 månader sedan
förälder
incheckning
802c0642e5
1 ändrade filer med 2 tillägg och 0 borttagningar
  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;
                     }