From c146e8587b95c45a6c86c6ca5a9a20457f6ae193 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sun, 12 Jun 2022 17:52:02 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=AA=85=EC=9E=A5=EC=9D=BC=EB=9E=8C?= =?UTF-8?q?=EC=97=90=20=EC=A7=84=ED=96=89=EC=A4=91=EC=9D=B8=20=EC=9C=A0?= =?UTF-8?q?=EB=8B=88=ED=81=AC=20=EA=B2=BD=EB=A7=A4=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/a_bestGeneral.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/hwe/a_bestGeneral.php b/hwe/a_bestGeneral.php index bc2d5e47..69bd6a87 100644 --- a/hwe/a_bestGeneral.php +++ b/hwe/a_bestGeneral.php @@ -2,7 +2,9 @@ namespace sammo; +use Ds\Set; use sammo\Enums\RankColumn; +use sammo\Enums\AuctionType; include "lib.php"; include "func.php"; @@ -19,6 +21,7 @@ $gameStor = KVStorage::getStorage($db, 'game_env'); increaseRefresh("명장일람", 1); $templates = new \League\Plates\Engine(__DIR__ . '/templates'); + ?> @@ -326,6 +329,32 @@ $templates = new \League\Plates\Engine(__DIR__ . '/templates'); } } + + $dummyAuctionGeneral = [ + 'nation' => 0, + 'no' => 0, + 'ownerName' => '', + 'pictureFullPath' => GetImageURL(0) . "/default.jpg", + 'name' => '경매중', + 'bgColor' => '#00582c', + 'fgColor' => 'white', + 'nationName' => '-', + ]; + + foreach ($db->queryFirstColumn( + 'SELECT `target` FROM ng_auction WHERE `finished` = 0 AND `type` = %s', + AuctionType::UniqueItem->value + ) as $itemClassName) { + if(key_exists($itemClassName, $itemOwners)) { + $itemOwners[$itemClassName][] = $dummyAuctionGeneral; + } + else{ + $itemOwners[$itemClassName] = [$dummyAuctionGeneral]; + } + } + + + foreach (GameConst::$allItems as $itemType => $itemList) { $itemNameType = $itemTypes[$itemType]; $itemList = array_reverse($itemList, true);