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