Explorar o código

列表 显示销量和浏览量

lizhen_gitee hai 1 mes
pai
achega
2906b525f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {