This commit is contained in:
HolographicHat
2022-03-27 12:51:41 +08:00
parent c76ddd9e3f
commit b4cd69f303
3 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View File

@@ -3,5 +3,7 @@ config.json
out.*
node_modules
.idea
app*.exe
export*.json
secret.js
package-lock.json

View File

@@ -31,7 +31,7 @@ const session = crypto.randomUUID()
const key = "648b83bf-d439-49bd-97f4-e1e506bdfe39"
const install = (() => {
const s = readRegistry("HKCU\\SOFTWARE\\miHoYoSDK", "MIHOYOSDK_DEVICE_ID")
const s = readRegistry("HKCU\\SOFTWARE\\miHoYoSDK", "MIHOYOSDK_DEVICE_ID", crypto.randomUUID())
return `${s.substring(0, 8)}-${s.substring(8, 12)}-${s.substring(12, 16)}-${s.substring(16, 20)}-${s.substring(20, 32)}`
})()

View File

@@ -1,6 +1,6 @@
const version = {
code: 3,
name: "1.2"
code: 4,
name: "1.3"
}
module.exports = { version }