From aab00fc4272274a76f0a7083e4b8a65d08879d38 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Fri, 26 Aug 2022 02:55:05 +0900 Subject: [PATCH] feat: CityBasicCard --- hwe/sammo/API/General/GetFrontInfo.php | 2 +- hwe/ts/PageFront.vue | 5 +- hwe/ts/components/CityBasicCard.vue | 228 +++++++++++++++++++++++++ 3 files changed, 233 insertions(+), 2 deletions(-) create mode 100644 hwe/ts/components/CityBasicCard.vue diff --git a/hwe/sammo/API/General/GetFrontInfo.php b/hwe/sammo/API/General/GetFrontInfo.php index 36508e4b..054a1fcb 100644 --- a/hwe/sammo/API/General/GetFrontInfo.php +++ b/hwe/sammo/API/General/GetFrontInfo.php @@ -378,7 +378,7 @@ class GetFrontInfo extends \sammo\BaseAPI $nationColor = $staticNation['color']; } - $rawOfficerList = $db->query('SELECT officer_level, name, npc FROM general WHERE city = %i AND officer_level IN (4,3,2)', $cityID); + $rawOfficerList = $db->query('SELECT officer_level, name, npc FROM general WHERE officer_city = %i AND officer_level IN (4,3,2)', $cityID); $officerList = [4 => null, 3 => null, 2 => null]; foreach ($rawOfficerList as $officer) { $officerLevel = $officer['officer_level']; diff --git a/hwe/ts/PageFront.vue b/hwe/ts/PageFront.vue index 524cef20..c5cbe190 100644 --- a/hwe/ts/PageFront.vue +++ b/hwe/ts/PageFront.vue @@ -25,7 +25,9 @@
지도
예턴
-
도시 정보
+
+ +
@@ -99,6 +101,7 @@ import Denque from "denque"; import { formatLog } from "@/utilGame/formatLog"; import type { ExecuteResponse, GetFrontInfoResponse } from "./defs/API/Global"; import { delay } from "./util/delay"; +import CityBasicCard from "./components/CityBasicCard.vue"; import NationBasicCard from "./components/NationBasicCard.vue"; import GeneralBasicCard from "./components/GeneralBasicCard.vue"; import type { GeneralListItemP1 } from "./defs/API/Nation"; diff --git a/hwe/ts/components/CityBasicCard.vue b/hwe/ts/components/CityBasicCard.vue new file mode 100644 index 00000000..1584e311 --- /dev/null +++ b/hwe/ts/components/CityBasicCard.vue @@ -0,0 +1,228 @@ + + +