소스 검색

列表 显示销量和浏览量

lizhen_gitee 1 개월 전
부모
커밋
2906b525f9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      addons/unishop/controller/Product.php

+ 1 - 1
addons/unishop/controller/Product.php

@@ -172,7 +172,7 @@ class Product extends Base
             ->where(['switch' => productModel::SWITCH_ON])
             ->page($page, $pagesize)
             ->order($by, $desc)
-            ->field('id,title,image,sales_price,market_price')
+            ->field('id,title,image,sales_price,market_price,look,sales,real_sales')
             ->select();
 
         if ($result) {