feat: GetNationInfo에 국방 추가

This commit is contained in:
Hide_D committed 2023-03-09 02:20:18 +09:00
1 parent 7a7cacd8d0
commit db428e5b0d
2 files changed
+7 -1

No files matched your search

+5 -1
View File
@@ -94,11 +94,15 @@ class GetNationInfo extends \sammo\BaseAPI
$troopName[$troopID] = $tName;
}
return [
$result = [
'result' => true,
'isFull' => $isFull,
'nation' => $nation,
'impossibleStrategicCommandLists' => $impossibleStrategicCommandLists,
'nationNotice' => $nationStor->nationNotice,
'troops' => $troopName,
];
return $result;
}
}
+2
View File
@@ -156,6 +156,8 @@ export type NationInfoResponse =
})
| (ValidResponse & {
nation: NationItem;
isFull: true,
impossibleStrategicCommandLists: [string, number][];
nationNotice: string,
troops: Record<number, string>;
});