feat: 명장일람에 진행중인 유니크 경매 표시
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
namespace sammo;
|
namespace sammo;
|
||||||
|
|
||||||
|
use Ds\Set;
|
||||||
use sammo\Enums\RankColumn;
|
use sammo\Enums\RankColumn;
|
||||||
|
use sammo\Enums\AuctionType;
|
||||||
|
|
||||||
include "lib.php";
|
include "lib.php";
|
||||||
include "func.php";
|
include "func.php";
|
||||||
@@ -19,6 +21,7 @@ $gameStor = KVStorage::getStorage($db, 'game_env');
|
|||||||
increaseRefresh("명장일람", 1);
|
increaseRefresh("명장일람", 1);
|
||||||
$templates = new \League\Plates\Engine(__DIR__ . '/templates');
|
$templates = new \League\Plates\Engine(__DIR__ . '/templates');
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
@@ -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) {
|
foreach (GameConst::$allItems as $itemType => $itemList) {
|
||||||
$itemNameType = $itemTypes[$itemType];
|
$itemNameType = $itemTypes[$itemType];
|
||||||
$itemList = array_reverse($itemList, true);
|
$itemList = array_reverse($itemList, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user