|
@@ -55,7 +55,7 @@ class Pub extends BaseController
|
|
|
['id', '','empty','参数错误'],
|
|
['id', '','empty','参数错误'],
|
|
|
], $request);
|
|
], $request);
|
|
|
$data = (new ShowTemplate)
|
|
$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"])
|
|
->where("id",$post["id"])
|
|
|
->find();
|
|
->find();
|
|
|
if(empty($data)){
|
|
if(empty($data)){
|
|
@@ -106,7 +106,7 @@ class Pub extends BaseController
|
|
|
$data=null;
|
|
$data=null;
|
|
|
if($totalCount>0){
|
|
if($totalCount>0){
|
|
|
$data = (new ShowTemplate)
|
|
$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)
|
|
->where($where)
|
|
|
->order("id", "desc")
|
|
->order("id", "desc")
|
|
|
->page((int)$post["page"], $post["pageSize"])
|
|
->page((int)$post["page"], $post["pageSize"])
|