1
This commit is contained in:
parent
241a323491
commit
9c3ffa776f
24
server/web3tools/old_user.js
Normal file
24
server/web3tools/old_user.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
const exceljs = require('exceljs');
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
const workbook = new exceljs.Workbook();
|
||||||
|
const dataBook = await workbook.xlsx.readFile('/home/kingsome/打金测试-GOLD模式产出金币数据.xlsx');
|
||||||
|
dataBook.eachSheet((sheet, sheetIndex) =>{
|
||||||
|
//console.log(sheet.name, sheetIndex);
|
||||||
|
if (sheet.name == '打金模式产出金币数据') {
|
||||||
|
let isFirstRow = false;
|
||||||
|
sheet.eachRow((row, index) => {
|
||||||
|
//const name = row.getCell(1).value();
|
||||||
|
if (!isFirstRow) {
|
||||||
|
isFirstRow = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const accountId = row.getCell(2).value.toLowerCase();
|
||||||
|
const gold = row.getCell(3).value;
|
||||||
|
console.log(accountId, gold);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
main();
|
Loading…
x
Reference in New Issue
Block a user