deploy: auto commit repo-root changes 2026-07-03 17:27:21
This commit is contained in:
@@ -11,17 +11,18 @@ class MatchLiveLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['match_id', 'fetch_status'],
|
||||
'=' => ['match_id', 'fetch_status', 'play_type', 'source_is_hot'],
|
||||
'%like%' => ['title', 'source_url', 'source_site', 'source_domain'],
|
||||
];
|
||||
}
|
||||
|
||||
public function lists(): array
|
||||
{
|
||||
$lists = $this->buildQuery()
|
||||
->field('id,match_id,title,source_url,play_url_m3u8,play_url_hd_m3u8,play_url_flv,play_url_hd_flv,fetch_status,fetch_error,last_fetch_at,next_fetch_at,create_time,update_time')
|
||||
->field('id,match_id,title,source_url,play_type,iframe_url,source_site,source_domain,source_match_key,source_line_key,source_is_hot,source_match_time,play_url_m3u8,play_url_hd_m3u8,play_url_flv,play_url_hd_flv,fetch_status,fetch_error,last_fetch_at,next_fetch_at,create_time,update_time')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order('create_time', 'asc')
|
||||
->order('id', 'asc')
|
||||
->order('create_time', 'desc')
|
||||
->order('id', 'desc')
|
||||
->select()
|
||||
->toArray();
|
||||
|
||||
@@ -50,14 +51,7 @@ class MatchLiveLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
|
||||
protected function buildQuery()
|
||||
{
|
||||
$query = MatchLive::whereNull('delete_time')
|
||||
return MatchLive::whereNull('delete_time')
|
||||
->where($this->searchWhere);
|
||||
|
||||
$matchId = (int) ($this->params['match_id'] ?? 0);
|
||||
if ($matchId <= 0) {
|
||||
$query->where('match_id', 0);
|
||||
}
|
||||
|
||||
return $query;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user