|
@@ -207,6 +207,7 @@ class Live extends Controller
|
|
|
{
|
|
|
$lid = input('id');
|
|
|
$cate_id = input('cate_id',0);
|
|
|
+ $search_name = input('search_name','');
|
|
|
$live_info = Db::table('store_live')->find($lid);
|
|
|
$this->title = $live_info['name'];
|
|
|
$goods_cate = Db::table('store_live_cate')
|
|
@@ -219,6 +220,7 @@ class Live extends Controller
|
|
|
$this->lid = $lid;
|
|
|
$where = [];
|
|
|
$where[]= ['l.live_id','=',$lid];
|
|
|
+ if($search_name) $where[] = ['g.name','like',"%".$search_name."%"];
|
|
|
if($cate_id) $where[] = ['l.cate_id','=',$cate_id];
|
|
|
$this->assign('cate_id',$cate_id);
|
|
|
$list = $this->_query('StoreLiveGoods')
|