fix: NPC 빙의 장수 목록 안보이는 버그 수정
- API/Global/GeneralList를 WithToken과 분리
This commit is contained in:
+2
-3
@@ -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',
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user