Compare commits

...

2 Commits

Author SHA1 Message Date
WalterBright feb5e25cd5 update 2 years ago
WalterBright e4a149a164 update 2 years ago
  1. 4
      exportSED.js
  2. BIN
      国服小助手.xlsx
  3. BIN
      国际服小助手.xlsx
  4. BIN
      生涯地图.xlsx

@ -34,14 +34,14 @@ const useHandle = (obj, handle) => {
const exportJsonLines = (xlsxFilePath, sheetName) => { const exportJsonLines = (xlsxFilePath, sheetName) => {
const table = xlsx.readFile(xlsxFilePath) const table = xlsx.readFile(xlsxFilePath)
const dataPath = `dist\\${xlsxFilePath}.${sheetName}.line.json` const dataPath = `dist\\${xlsxFilePath}.${sheetName}.sed.json`
const dataJson = xlsx.utils.sheet_to_json(table.Sheets[sheetName]) const dataJson = xlsx.utils.sheet_to_json(table.Sheets[sheetName])
// console.log(table.Sheets[sheetName]["!merges"]) // console.log(table.Sheets[sheetName]["!merges"])
const dataLines = dataJson.map((obj) => ({ const dataLines = dataJson.map((obj) => ({
car_id: obj.car_id, car_id: obj.car_id,
fullName: obj.fullName, fullName: obj.fullName,
nickName: obj.nickName, nickName: obj.nickName,
isKeyCar: !!obj.keyCar, isKeyCar: obj.star_1==='🔑',
rankLimits: [], rankLimits: [],
star: obj.star, star: obj.star,
})) }))

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save