feat: GetNationInfo에 국방 추가

This commit is contained in:
2023-03-09 02:20:18 +09:00
parent 7a7cacd8d0
commit db428e5b0d
2 changed files with 7 additions and 1 deletions
+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>;
});