yingzi 2 年之前
父節點
當前提交
0bde423bd1
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/api/controller/Pub.php

+ 2 - 2
app/api/controller/Pub.php

@@ -55,7 +55,7 @@ class Pub extends BaseController
             ['id', '','empty','参数错误'],
         ], $request);
         $data = (new ShowTemplate)
-                ->field("id,title,price,old_price,status,imgs,is_hot,is_recommend,code,look_count")
+                ->field("id,title,price,old_price,status,imgs,is_hot,is_recommend,code,look_count,real_sales,unreal_sales")
                 ->where("id",$post["id"])
                 ->find();
         if(empty($data)){
@@ -106,7 +106,7 @@ class Pub extends BaseController
         $data=null;
         if($totalCount>0){
             $data = (new ShowTemplate)
-                ->field("id,title,price,old_price,status,imgs,is_hot,is_recommend,code,look_count")
+                ->field("id,title,price,old_price,status,imgs,is_hot,is_recommend,code,look_count,real_sales,unreal_sales")
                 ->where($where)
                 ->order("id", "desc")
                 ->page((int)$post["page"], $post["pageSize"])