fix: NPC 빙의 장수 목록 안보이는 버그 수정

- API/Global/GeneralList를 WithToken과 분리
This commit is contained in:
2022-04-20 22:33:46 +09:00
parent 4a90199617
commit 8acd71d85a
5 changed files with 46 additions and 24 deletions
+2 -3
View File
@@ -50,9 +50,8 @@ const apiRealPath = {
Join: POST as APICallT<JoinArgs>,
},
Global: {
GeneralList: GET as APICallT<{
with_token?: boolean
}, GeneralListResponse>,
GeneralList: GET as APICallT<undefined, GeneralListResponse>,
GeneralListWithToken: GET as APICallT<undefined, GeneralListResponse>,
GetConst: GET as APICallT<undefined, GetConstResponse>,
GetHistory: StrVar('serverID')(
NumVar('year',
+4 -6
View File
@@ -101,9 +101,9 @@ const templateGeneralRow =
<td><%specialDomesticWithTooltip%> / <%specialWarWithTooltip%></td>\
<td>Lv <%explevel%></td>\
<td><%nation%></td>\
<td><%experience%></td>\
<td><%dedication%></td>\
<td><%officerLevel%></td>\
<td><%experienceStr%></td>\
<td><%dedicationStr%></td>\
<td><%officerLevelStr%></td>\
<td><%total%></td>\
<td><%leadership%></td>\
<td><%strength%></td>\
@@ -420,9 +420,7 @@ $(function ($) {
$('#btn_load_general_list').on('click', async function () {
try {
const result = await SammoAPI.Global.GeneralList({
with_token: true,
});
const result = await SammoAPI.Global.GeneralListWithToken();
printGeneralList(result);
} catch (e) {
console.error(e);