浏览代码

列表 显示销量和浏览量

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) {