This commit is contained in:
HolographicHat
2022-04-25 16:16:13 +08:00
parent 82ba6120e4
commit 98a03a0910
2 changed files with 4 additions and 3 deletions

3
app.js
View File

@@ -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:

View File

@@ -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))