WxLive.php 572 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\api\model\plus\live;
  3. use app\common\model\plus\live\WxLive as WxLiveModel;
  4. /**
  5. * 微信直播模型
  6. */
  7. class WxLive extends WxLiveModel
  8. {
  9. /**
  10. * 隐藏字段
  11. */
  12. protected $hidden = [
  13. 'is_delete',
  14. 'app_id',
  15. ];
  16. /**
  17. * 获取直播列表
  18. */
  19. public function getList($params)
  20. {
  21. return $this->where('live_status', 'in', [101,102,103])->order([
  22. 'is_top' => 'desc',
  23. 'live_status' => 'asc',
  24. 'create_time' => 'desc'
  25. ])->paginate($params);
  26. }
  27. }