Commit 60922f7b authored by wangjiangze's avatar wangjiangze

云端片库筛选条件更新

parent 4f30f0be
...@@ -17,9 +17,15 @@ class MediaModel extends RelationModel{ ...@@ -17,9 +17,15 @@ class MediaModel extends RelationModel{
$searchType = $inputs["searchType"]?$inputs["searchType"]:0; $searchType = $inputs["searchType"]?$inputs["searchType"]:0;
$searchStatus = $inputs["searchStatus"]?$inputs["searchStatus"]:0; $searchStatus = $inputs["searchStatus"]?$inputs["searchStatus"]:0;
$model = new Model();
if ($searchSite){ if ($searchSite){
$where = " and mw.site_id=$searchSite "; $where = " and mw.site_id=$searchSite ";
} }
if($userInfo['sp_ids']&&$userInfo['grade']>=3){
$site_ids = $model->query("select group_concat(site_id) site_ids from sh_sp where id in(".$userInfo['sp_ids'].")");
$where .= " and mw.site_id in(".$site_ids[0]['site_ids'].") ";
}
if ($searchClass==2){ if ($searchClass==2){
$where .= " and mw.`type`='movie' "; $where .= " and mw.`type`='movie' ";
}else if($searchClass==1){ }else if($searchClass==1){
......
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