update export method

This commit is contained in:
2026-03-13 18:23:24 +08:00
parent 937f3d21bb
commit c5cf99f935
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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);