删除延迟比赛
parent
7327fc2f11
commit
07397956a2
|
|
@ -101,7 +101,8 @@ class SyncCtzq extends Command
|
||||||
if (!$matches) {
|
if (!$matches) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$matchIds = array_column($matches, 'matchId');
|
||||||
|
CtzqJqcMatch::where('ctzq_jqc_id', $ctzq->id)->whereNotIn('match_id', $matchIds)->delete();
|
||||||
foreach ($matches as $item) {
|
foreach ($matches as $item) {
|
||||||
$match = CtzqJqcMatch::where('ctzq_jqc_id', $ctzq->id)->where('match_id', $item['matchId'])->first();
|
$match = CtzqJqcMatch::where('ctzq_jqc_id', $ctzq->id)->where('match_id', $item['matchId'])->first();
|
||||||
if (!$match) {
|
if (!$match) {
|
||||||
|
|
@ -163,7 +164,8 @@ class SyncCtzq extends Command
|
||||||
if (!$matches) {
|
if (!$matches) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$matchIds = array_column($matches, 'matchId');
|
||||||
|
CtzqBqcMatch::where('ctzq_bqc_id', $ctzq->id)->whereNotIn('match_id', $matchIds)->delete();
|
||||||
foreach ($matches as $item) {
|
foreach ($matches as $item) {
|
||||||
$match = CtzqBqcMatch::where('ctzq_bqc_id', $ctzq->id)->where('match_id', $item['matchId'])->first();
|
$match = CtzqBqcMatch::where('ctzq_bqc_id', $ctzq->id)->where('match_id', $item['matchId'])->first();
|
||||||
if (!$match) {
|
if (!$match) {
|
||||||
|
|
@ -234,7 +236,8 @@ class SyncCtzq extends Command
|
||||||
if (!$matches) {
|
if (!$matches) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$matchIds = array_column($matches, 'matchId');
|
||||||
|
CtzqSfcMatch::where('ctzq_sfc_id', $ctzqSfc->id)->whereNotIn('match_id', $matchIds)->delete();
|
||||||
foreach ($matches as $item) {
|
foreach ($matches as $item) {
|
||||||
$match = CtzqSfcMatch::where('ctzq_sfc_id', $ctzqSfc->id)->where('match_id', $item['matchId'])->first();
|
$match = CtzqSfcMatch::where('ctzq_sfc_id', $ctzqSfc->id)->where('match_id', $item['matchId'])->first();
|
||||||
if (!$match) {
|
if (!$match) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue