diff --git a/app.js b/app.js index 1b97c20..b3955a1 100644 --- a/app.js +++ b/app.js @@ -145,9 +145,10 @@ const onExit = () => { switch(buf.readUInt32BE(0)) { case 325: createMonitor() - debug("服务端握手应答") + debug("Connection established.") break case 404: + debug("Connection terminated.") lastRecvTimestamp = parseInt(Date.now() / 1000) - 2333 break default: diff --git a/export.js b/export.js index 47e4c12..b5a3fe5 100644 --- a/export.js +++ b/export.js @@ -8,7 +8,7 @@ const { checkSnapFastcall, copyToClipboard } = require("./native") const exportToSeelie = proto => { const out = { achievements: {} } proto.list.filter(a => a.status === 3 || a.status === 2).forEach(({id}) => { - out.achievements[id] = { done: true } + out.achievements[id === 81222 ? 81219 : id] = { done: true } }) const fp = `./export-${Date.now()}-seelie.json` fs.writeFileSync(fp, JSON.stringify(out)) @@ -23,7 +23,7 @@ const exportToPaimon = async proto => { if (out.achievement[gid] === undefined) { out.achievement[gid] = {} } - out.achievement[gid][id] = true + out.achievement[gid][id === 81222 ? 81219 : id] = true }) const fp = `./export-${Date.now()}-paimon.json` fs.writeFileSync(fp, JSON.stringify(out))