diff --git a/dist/bcm_tool.js b/dist/bcm_tool.js index b46bc32..ffa09b2 100644 --- a/dist/bcm_tool.js +++ b/dist/bcm_tool.js @@ -62,6 +62,7 @@ class BcmTool { ExportPlayerInfo(playersToQuery) { const lstAttributes = [...this.attributes]; const form = new Form(); + form.SetCell(0, 0, "姓名"); form.SetCell(0, 1, "球队"); for (let i = 0; i != lstAttributes.length; ++i) { form.SetCell(0, i + 2, lstAttributes[i][0]); @@ -76,7 +77,7 @@ class BcmTool { form.SetCell(i + 1, 1, this.QueryOwner(playerId)); for (let j = 0; j != lstAttributes.length; ++j) { const record = this.QueryInfo(playerId, lstAttributes[j][1]); - form.SetCell(i + 2, j + 1, record.toString()); + form.SetCell(i + 1, j + 2, record.toString()); } } console.log(form); diff --git a/src/bcm_tool.ts b/src/bcm_tool.ts index 5184670..990ccd2 100644 --- a/src/bcm_tool.ts +++ b/src/bcm_tool.ts @@ -73,7 +73,7 @@ class BcmTool for (let j = 0; j != lstAttributes.length; ++j) { const record = this.QueryInfo(playerId, lstAttributes[j][1] as number); - form.SetCell(i + 2, j + 1, record.toString()); + form.SetCell(i + 1, j + 2, record.toString()); } } console.log(form);