소스 검색

购物车

lizhen_gitee 10 달 전
부모
커밋
802c0642e5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;
                     }