1
This commit is contained in:
parent
9c3ffa776f
commit
abed9dfe49
@ -47,7 +47,7 @@ async function activate721Nft(session) {
|
||||
session.rspErr(101, 'item_id param error');
|
||||
return;
|
||||
}
|
||||
if (!(itemMeta.getNftType() == bcconst.BC_NFT_HERO ||
|
||||
if (!(itemMeta.getNftType() == bcconst.BC_NFT_NORMAL_HERO ||
|
||||
itemMeta.getNftType() == bcconst.BC_NFT_GOLD_BULLION)) {
|
||||
session.rspErr(101, 'token_type param error');
|
||||
return;
|
||||
|
@ -5,7 +5,9 @@ async function main() {
|
||||
const dataBook = await workbook.xlsx.readFile('/home/kingsome/打金测试-GOLD模式产出金币数据.xlsx');
|
||||
dataBook.eachSheet((sheet, sheetIndex) =>{
|
||||
//console.log(sheet.name, sheetIndex);
|
||||
let data = [];
|
||||
if (sheet.name == '打金模式产出金币数据') {
|
||||
let idx = 0;
|
||||
let isFirstRow = false;
|
||||
sheet.eachRow((row, index) => {
|
||||
//const name = row.getCell(1).value();
|
||||
@ -14,10 +16,16 @@ async function main() {
|
||||
return;
|
||||
}
|
||||
const accountId = row.getCell(2).value.toLowerCase();
|
||||
const gold = row.getCell(3).value;
|
||||
console.log(accountId, gold);
|
||||
const diamond = row.getCell(3).value;
|
||||
//console.log(accountId, diamond);
|
||||
data.push({
|
||||
'idx': ++idx,
|
||||
'account_id': accountId,
|
||||
'diamond': diamond
|
||||
});
|
||||
});
|
||||
}
|
||||
console.log(JSON.stringify(data, "", " "));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user