...
|
...
|
@@ -72,6 +72,7 @@ class Goods extends Api |
|
|
->where(['p.category_id'=>$category_id,'p.status'=>$this->normal,'u.status'=>'normal'])
|
|
|
->page($page,$limit)
|
|
|
->field('p.id,u.type,p.title,u.address,p.pre_time,p.images')
|
|
|
->order('p.id desc')
|
|
|
->select();
|
|
|
foreach($data as &$value){
|
|
|
$value['pre_time'] = date('Y-m-d H:i:s',$value['pre_time']);
|
...
|
...
|
@@ -171,6 +172,7 @@ class Goods extends Api |
|
|
$data = Db::table('gc_search')
|
|
|
->where(['uid'=>$this->user_id])
|
|
|
->field('id,keywords')
|
|
|
->order('id desc')
|
|
|
->select();
|
|
|
$this->success('成功', $data);
|
|
|
}else{
|
...
|
...
|
@@ -309,6 +311,7 @@ class Goods extends Api |
|
|
->where($where)
|
|
|
->field('p.id,p.title,p.price,p.images')
|
|
|
->limit(20)
|
|
|
->order('p.id desc')
|
|
|
->select();
|
|
|
$this->success('成功', $data);
|
|
|
}else{
|
...
|
...
|
|