@@ -69,15 +69,24 @@ class InjectAction extends CommonAction{
...
@@ -69,15 +69,24 @@ class InjectAction extends CommonAction{
$info=$model->where("id = $id")->find();
$info=$model->where("id = $id")->find();
$this->info=$info;
$this->info=$info;
}
}
$media_lists=$mediaModel->join(" A join sh_sp B on A.site_id = B.site_id ")->field("concat(A.id,'_',A.code) id,A.title,group_concat(B.id) sp_ids")->group(" A.id ")->select();
$media_lists=$mediaModel->join(" A join sh_sp B on A.site_id = B.site_id ")
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")->field("A.id,A.`name`,A.sp_id,group_concat(B.media_id) media_ids")->where("A.sp_id in(".$userInfo['sp_ids'].") and A.`status` = 0")->group("A.id")->select();
->where("`status`=0 and sp_id in(".$userInfo['sp_ids'].")")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")
->join(" join sh_media_wasu C on B.media_id=C.id ")
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")->field("A.id,A.`name`,A.sp_id,group_concat(B.media_id) media_ids")->where("A.`status` = 0")->group("A.id")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")
->join(" join sh_media_wasu C on B.media_id=C.id ")
@@ -76,12 +76,19 @@ class PlayCtrlAction extends CommonAction{
...
@@ -76,12 +76,19 @@ class PlayCtrlAction extends CommonAction{
$media_lists=$mediaModel->join(" A join sh_sp B on A.site_id = B.site_id ")->field("concat(A.id,'_',A.code) id,A.title,group_concat(B.id) sp_ids")->group(" A.id ")->select();
$media_lists=$mediaModel->join(" A join sh_sp B on A.site_id = B.site_id ")->field("concat(A.id,'_',A.code) id,A.title,group_concat(B.id) sp_ids")->group(" A.id ")->select();
if($userInfo['sp_ids']&&$userInfo['grade']>=3){
if($userInfo['sp_ids']&&$userInfo['grade']>=3){
$sp_lists=$spModel->field("id,`name`")->where("`status`=0 and id in(".$userInfo['sp_ids'].")")->select();
$sp_lists=$spModel->field("id,`name`")->where("`status`=0 and id in(".$userInfo['sp_ids'].")")->select();
$hotel_lists=$hotelModel->field("id,`name`,sp_id,region_id")->where("`status`=0 and sp_id in(".$userInfo['sp_ids'].")")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")->field("A.id,A.`name`,A.sp_id,group_concat(B.media_id) media_ids")->where("A.sp_id in(".$userInfo['sp_ids'].")")->group("A.id")->select();
->where("`status`=0 and sp_id in(".$userInfo['sp_ids'].")")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")
->join(" join sh_media_wasu C on B.media_id=C.id ")
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")->field("A.id,A.`name`,A.sp_id,group_concat(B.media_id) media_ids")->group("A.id")->select();
$play_lists=$spPlaylistModel->join(" A join sh_sp_playlist_media_map B on A.id = B.playlist_id ")
->join(" join sh_media_wasu C on B.media_id=C.id ")