Example #1
0
 /**
  * 获取已经播放过的节目列表
  *
  * @param int $page
  *
  * @return
  */
 public static function getRecentlyPlayedAlbumSheets($page = 1)
 {
     $that = new self();
     $that->setPerPage(self::$page);
     return $that->where('broadcast_at', '<', date('Y-m-d H:i:s'))->orderBy('broadcast_at', 'desc')->skip(($page - 1) * $that->getPerPage())->take($that->getPerPage())->get();
 }