diff --git a/admin/controllers/sys/Vlog.php b/admin/controllers/sys/Vlog.php index df624b27..ebb4c34c 100644 --- a/admin/controllers/sys/Vlog.php +++ b/admin/controllers/sys/Vlog.php @@ -14,6 +14,8 @@ class Vlog extends HD_Controller public function index() { + $typeAry = $this->biz_model->type_ary(); + $this->data['typeAry'] = $typeAry; return $this->lists(); } @@ -41,6 +43,10 @@ class Vlog extends HD_Controller } $where["biz_id in ($bizs)"] = null; } + if ($params['type']) { + $type = intval($params['type']); + $where["biz_id in (select id from lc_biz where type={$type})"] = null; + } if ($params['c_time']) { $c_time = explode(' ~ ', $params['c_time']); $c_time[0] && $where["createTime >="] = $c_time[0] . ' 00:00:00'; diff --git a/admin/views/sys/vlog/lists.php b/admin/views/sys/vlog/lists.php index 9dedba22..a6c25b33 100644 --- a/admin/views/sys/vlog/lists.php +++ b/admin/views/sys/vlog/lists.php @@ -12,6 +12,15 @@ +