feat,wip: 경매장 API export

This commit is contained in:
2022-06-09 01:21:21 +09:00
parent 52554048ae
commit 40eda5477a
12 changed files with 525 additions and 183 deletions
+3 -3
View File
@@ -111,7 +111,7 @@ abstract class Auction
$this->info->closeDate = $date;
$db = DB::db();
$db->update('ng_auction', $this->info->toArrayExcept('id'), 'id = %i', $this->info->id);
$db->update('ng_auction', $this->info->toArray('id'), 'id = %i', $this->info->id);
return null;
}
@@ -138,7 +138,7 @@ abstract class Auction
$this->info->availableLatestBidCloseDate = $closeDate->add(TimeUtil::secondsToDateInterval(
max(static::MIN_EXTENSION_MINUTES_PER_BID, $turnTerm * static::COEFF_EXTENSION_MINUTES_PER_BID) * 60
));
$db->update('ng_auction', $this->info->toArrayExcept('id'), 'id = %i', $this->info->id);
$db->update('ng_auction', $this->info->toArray('id'), 'id = %i', $this->info->id);
return null;
}
@@ -201,7 +201,7 @@ abstract class Auction
$this->rollbackAuction();
}
$db->update('ng_auction', $this->info->toArrayExcept('id'), 'id = %i', $this->info->id);
$db->update('ng_auction', $this->info->toArray('id'), 'id = %i', $this->info->id);
}
private function bidInheritPoint(int $amount, \DateTimeImmutable $now, bool $tryExtendCloseDate): ?string