Example #1
0
 /**
  * 百度云分享页面
  * test
  */
 public function actionBaiduyun($id)
 {
     if (!is_numeric($id)) {
         return $this->render('404.php');
     }
     $movieInfo = models\MvBasic::getMovieInfo($id);
     if (!$movieInfo) {
         return $this->render('404.php');
     }
     return $this->render('movie_play', ['movie' => $movieInfo]);
 }
Example #2
0
 /**
  * get movie 
  *
  * @param  string
  * @return array
  */
 public function getBasic()
 {
     return self::hasOne(MvBasic::className(), ['id' => 'rec_content']);
 }