From 67f3004eb067cbb15b965b9be654dd8d22715218 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Fri, 27 Jan 2023 00:43:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=B4=EB=AF=B8=20=EB=8B=A4=EB=A5=B8?= =?UTF-8?q?=20=EB=B6=80=EC=9C=84=EC=97=90=20=EC=9E=85=EC=B0=B0=EC=A4=91?= =?UTF-8?q?=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=20=EA=B2=BD=EB=A7=A4=EA=B0=80=20?= =?UTF-8?q?=EC=97=B4=EB=A6=AC=EB=8B=A4=20=EB=A7=88=EB=8A=94=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/AuctionUniqueItem.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/AuctionUniqueItem.php b/hwe/sammo/AuctionUniqueItem.php index 9ed44630..069bd346 100644 --- a/hwe/sammo/AuctionUniqueItem.php +++ b/hwe/sammo/AuctionUniqueItem.php @@ -110,7 +110,11 @@ class AuctionUniqueItem extends Auction } $auction = new static($auctionID, $general); try { - $auction->bid($startAmount, false); + $failReason = $auction->bid($startAmount, false); + if($failReason){ + $auction->closeAuction(); + return "경매를 시작했지만, 첫 입찰에 실패했습니다: {$failReason}"; + } } catch (\Exception $e) { //실패해선 안된다. $msg = $e->getMessage();