Commit 4021fd1f authored by wxl's avatar wxl

no message

parent e6957435
......@@ -23,11 +23,11 @@ class Goods extends Api
$page = $this->request->param('page', 1);
$skeyword = $this->request->param('skeyword', '');
$map['closed']=0;
$map['activity_list']=null;
//$map['activity_list']=null;
if (!empty($skeyword)) {
$map['title|intro'] = array('LIKE', '%' . $skeyword . '%');
}
$list=GoodsModel::where($map)->order("orderby desc")->limit($this->pageSize)->page($page)->select();
$list=GoodsModel::where($map)->where('!FIND_IN_SET(2,activity_list)')->order("orderby desc")->limit($this->pageSize)->page($page)->select();
return $this->success("",['banner'=>$banner,'list'=>$list]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment