删除延迟比赛

pull/1/head
jcadmin 2025-02-25 22:32:57 +08:00
parent 7327fc2f11
commit 07397956a2
1 changed files with 6 additions and 3 deletions

View File

@ -101,7 +101,8 @@ class SyncCtzq extends Command
if (!$matches) {
return;
}
$matchIds = array_column($matches, 'matchId');
CtzqJqcMatch::where('ctzq_jqc_id', $ctzq->id)->whereNotIn('match_id', $matchIds)->delete();
foreach ($matches as $item) {
$match = CtzqJqcMatch::where('ctzq_jqc_id', $ctzq->id)->where('match_id', $item['matchId'])->first();
if (!$match) {
@ -163,7 +164,8 @@ class SyncCtzq extends Command
if (!$matches) {
return;
}
$matchIds = array_column($matches, 'matchId');
CtzqBqcMatch::where('ctzq_bqc_id', $ctzq->id)->whereNotIn('match_id', $matchIds)->delete();
foreach ($matches as $item) {
$match = CtzqBqcMatch::where('ctzq_bqc_id', $ctzq->id)->where('match_id', $item['matchId'])->first();
if (!$match) {
@ -234,7 +236,8 @@ class SyncCtzq extends Command
if (!$matches) {
return;
}
$matchIds = array_column($matches, 'matchId');
CtzqSfcMatch::where('ctzq_sfc_id', $ctzqSfc->id)->whereNotIn('match_id', $matchIds)->delete();
foreach ($matches as $item) {
$match = CtzqSfcMatch::where('ctzq_sfc_id', $ctzqSfc->id)->where('match_id', $item['matchId'])->first();
if (!$match) {