mirror of
https://github.com/HolographicHat/Yae.git
synced 2026-03-15 16:43:17 +08:00
Fix #11
This commit is contained in:
3
app.js
3
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:
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user