feat: CityBasicCard

This commit is contained in:
2023-03-09 02:20:12 +09:00
parent bce89c9e55
commit aab00fc427
3 changed files with 233 additions and 2 deletions
+1 -1
View File
@@ -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'];