mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2025-04-21 07:50:19 +08:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
5de6b7bb6a | |||
bfa075fe57 | |||
056bb36b15 | |||
0035307762 | |||
a1257bdbfb |
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
## 使用说明
|
## 使用说明
|
||||||
|
|
||||||
1. 下载工具后解压 - 下载地址: [Github](https://github.com/biuuu/star-rail-warp-export/releases/latest/download/StarRailWarpExport.zip) / [蓝奏云]()
|
1. 下载工具后解压 - 下载地址: [Github](https://github.com/biuuu/star-rail-warp-export/releases/latest/download/StarRailWarpExport.zip) / [蓝奏云](https://wwvt.lanzoum.com/b022mikwh) 密码:f1iy
|
||||||
2. 打开游戏的跃迁历史记录
|
2. 打开游戏的跃迁历史记录
|
||||||
|
|
||||||
3. 点击工具的“加载数据”按钮
|
3. 点击工具的“加载数据”按钮
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "star-rail-warp-export",
|
"name": "star-rail-warp-export",
|
||||||
"version": "0.0.1",
|
"version": "0.0.3",
|
||||||
"main": "./dist/electron/main/main.js",
|
"main": "./dist/electron/main/main.js",
|
||||||
"author": "biuuu <https://github.com/biuuu>",
|
"author": "biuuu <https://github.com/biuuu>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -18,7 +18,6 @@ const saveData = async (data, url) => {
|
|||||||
const obj = Object.assign({}, data)
|
const obj = Object.assign({}, data)
|
||||||
obj.result = [...obj.result]
|
obj.result = [...obj.result]
|
||||||
obj.typeMap = [...obj.typeMap]
|
obj.typeMap = [...obj.typeMap]
|
||||||
config.urls.set(data.uid, url)
|
|
||||||
await config.save()
|
await config.save()
|
||||||
await saveJSON(`gacha-list-${data.uid}.json`, obj)
|
await saveJSON(`gacha-list-${data.uid}.json`, obj)
|
||||||
}
|
}
|
||||||
@ -90,7 +89,7 @@ const getLatestUrl = (list) => {
|
|||||||
const tsMch = list[i].match(/timestamp=(\d+)/)
|
const tsMch = list[i].match(/timestamp=(\d+)/)
|
||||||
if (tsMch?.[1]) {
|
if (tsMch?.[1]) {
|
||||||
const ts = parseInt(tsMch[1])
|
const ts = parseInt(tsMch[1])
|
||||||
if (time < parseInt(tsMch[1])) {
|
if (time <= parseInt(tsMch[1])) {
|
||||||
time = ts
|
time = ts
|
||||||
result = list[i]
|
result = list[i]
|
||||||
}
|
}
|
||||||
@ -116,7 +115,7 @@ const readLog = async () => {
|
|||||||
}
|
}
|
||||||
const promises = logPaths.map(async logpath => {
|
const promises = logPaths.map(async logpath => {
|
||||||
const logText = await fs.readFile(logpath, 'utf8')
|
const logText = await fs.readFile(logpath, 'utf8')
|
||||||
const gamePathMch = logText.match(/\w:\/.+(Star\sRail\/Game\/StarRail_Data)/)
|
const gamePathMch = logText.match(/\w:\/.*?(Star\sRail\/Game\/StarRail_Data)/)
|
||||||
if (gamePathMch) {
|
if (gamePathMch) {
|
||||||
const cacheText = await fs.readFile(path.join(gamePathMch[0], '/webCaches/Cache/Cache_Data/data_2'), 'utf8')
|
const cacheText = await fs.readFile(path.join(gamePathMch[0], '/webCaches/Cache/Cache_Data/data_2'), 'utf8')
|
||||||
const urlMch = cacheText.match(/https.+?&auth_appid=webview_gacha&.+?authkey=.+?&game_biz=hkrpg_.+/g)
|
const urlMch = cacheText.match(/https.+?&auth_appid=webview_gacha&.+?authkey=.+?&game_biz=hkrpg_.+/g)
|
||||||
|
Reference in New Issue
Block a user