更新接口支持打折商品
This commit is contained in:
parent
08767ec76c
commit
74ed5ef8e6
@ -129,7 +129,7 @@ class CommunityRepository extends BaseRepository
|
||||
]);
|
||||
$count = $query->count();
|
||||
$list = $query->page($page, $limit)->setOption('field',[])
|
||||
->field('community_id,title,image,topic_id,Community.count_start,count_reply,start,Community.create_time,Community.uid,Community.status,is_show,content,video_link,is_type,refusal')
|
||||
->field('community_id,title,image,resale_type,topic_id,Community.count_start,count_reply,start,Community.create_time,Community.uid,Community.status,is_show,content,video_link,is_type,refusal')
|
||||
->select()->append(['time']);
|
||||
|
||||
if ($list) $list = $list->toArray();
|
||||
|
@ -59,7 +59,7 @@ class Community extends BaseController
|
||||
*/
|
||||
public function lst()
|
||||
{
|
||||
$where = $this->request->params(['keyword','topic_id','is_hot','category_id','spu_id', 'is_type']);
|
||||
$where = $this->request->params(['keyword','topic_id','is_hot','category_id','spu_id', 'is_type', 'resale_type']);
|
||||
if (!$where['category_id']) {
|
||||
unset($where['category_id']);
|
||||
} else if ($where['category_id'] == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user