4.0日常更新
This commit is contained in:
@@ -18,7 +18,12 @@ class Channel extends Admin{
|
||||
public function index(ChannelModel $channel){
|
||||
if($this->request->isAjax()){
|
||||
$tree = $this->request->param('tree', 0);
|
||||
$type = $this->request->param('type', 0);
|
||||
$map = array();
|
||||
|
||||
if($type){
|
||||
$map['type'] = $type;
|
||||
}
|
||||
|
||||
$res = $channel->where($map)->order('sort asc, id asc')->select();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user