Compare commits

...
2 Commits
Author SHA1 Message Date
earthjasonlin 543e6b1bfe fix: update gacha API endpoint to hkrpg_gacha_record 2026-08-31 07:16:27 +08:00
GitHub Action 1fd1d3b11b chore: update idJson to 4.5 2026-08-26 00:58:41 +00:00
3 changed files with 155 additions and 5 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "star-rail-warp-export",
"version": "0.2.10",
"version": "0.2.11",
"main": "./dist/electron/main/main.js",
"author": "biuuu <https://github.com/biuuu>",
"homepage": "https://github.com/biuuu/star-rail-warp-export",
+151 -1
View File
@@ -440,6 +440,11 @@
"item_type": "光锥",
"rank_type": "4"
},
"21066": {
"name": "放个短假",
"item_type": "光锥",
"rank_type": "4"
},
"22000": {
"name": "新手任务开始前",
"item_type": "光锥",
@@ -480,6 +485,11 @@
"item_type": "光锥",
"rank_type": "4"
},
"22008": {
"name": "向着地平线的终点",
"item_type": "光锥",
"rank_type": "4"
},
"23000": {
"name": "银河铁道之夜",
"item_type": "光锥",
@@ -790,6 +800,16 @@
"item_type": "光锥",
"rank_type": "5"
},
"23063": {
"name": "你将起身歌唱",
"item_type": "光锥",
"rank_type": "5"
},
"23064": {
"name": "向浪花掷下盛夏",
"item_type": "光锥",
"rank_type": "5"
},
"24000": {
"name": "记一位星神的陨落",
"item_type": "光锥",
@@ -1250,6 +1270,16 @@
"item_type": "角色",
"rank_type": "5"
},
"1512": {
"name": "知更鸟•晴歌",
"item_type": "角色",
"rank_type": "5"
},
"1513": {
"name": "砂金•戏浪",
"item_type": "角色",
"rank_type": "5"
},
"8001": {
"name": "{NICKNAME}",
"item_type": "角色",
@@ -1742,6 +1772,11 @@
"item_type": "光錐",
"rank_type": "4"
},
"21066": {
"name": "放個短假",
"item_type": "光錐",
"rank_type": "4"
},
"22000": {
"name": "新手任務開始前",
"item_type": "光錐",
@@ -1782,6 +1817,11 @@
"item_type": "光錐",
"rank_type": "4"
},
"22008": {
"name": "向着地平線的終點",
"item_type": "光錐",
"rank_type": "4"
},
"23000": {
"name": "銀河鐵道之夜",
"item_type": "光錐",
@@ -2092,6 +2132,16 @@
"item_type": "光錐",
"rank_type": "5"
},
"23063": {
"name": "你將起身歌唱",
"item_type": "光錐",
"rank_type": "5"
},
"23064": {
"name": "向浪花擲下盛夏",
"item_type": "光錐",
"rank_type": "5"
},
"24000": {
"name": "記一位星神的隕落",
"item_type": "光錐",
@@ -2552,6 +2602,16 @@
"item_type": "角色",
"rank_type": "5"
},
"1512": {
"name": "知更鳥•晴歌",
"item_type": "角色",
"rank_type": "5"
},
"1513": {
"name": "砂金•戲浪",
"item_type": "角色",
"rank_type": "5"
},
"8001": {
"name": "{NICKNAME}",
"item_type": "角色",
@@ -3044,6 +3104,11 @@
"item_type": "Light Cone",
"rank_type": "4"
},
"21066": {
"name": "A Little Getaway",
"item_type": "Light Cone",
"rank_type": "4"
},
"22000": {
"name": "Before the Tutorial Mission Starts",
"item_type": "Light Cone",
@@ -3084,6 +3149,11 @@
"item_type": "Light Cone",
"rank_type": "4"
},
"22008": {
"name": "Race to the Horizon",
"item_type": "Light Cone",
"rank_type": "4"
},
"23000": {
"name": "Night on the Milky Way",
"item_type": "Light Cone",
@@ -3394,6 +3464,16 @@
"item_type": "Light Cone",
"rank_type": "5"
},
"23063": {
"name": "Rise and Sing",
"item_type": "Light Cone",
"rank_type": "5"
},
"23064": {
"name": "Summer Rides the Surf",
"item_type": "Light Cone",
"rank_type": "5"
},
"24000": {
"name": "On the Fall of an Aeon",
"item_type": "Light Cone",
@@ -3854,6 +3934,16 @@
"item_type": "Character",
"rank_type": "5"
},
"1512": {
"name": "Robin • Summeretto",
"item_type": "Character",
"rank_type": "5"
},
"1513": {
"name": "Aventurine • Waveflair",
"item_type": "Character",
"rank_type": "5"
},
"8001": {
"name": "{NICKNAME}",
"item_type": "Character",
@@ -4346,6 +4436,11 @@
"item_type": "光円錐",
"rank_type": "4"
},
"21066": {
"name": "バカンスのひと{RUBY_B#とき}時{RUBY_E#}",
"item_type": "光円錐",
"rank_type": "4"
},
"22000": {
"name": "{RUBY_B#はじ}初{RUBY_E#}めてのクエストの{RUBY_B#まえ}前{RUBY_E#}に",
"item_type": "光円錐",
@@ -4386,6 +4481,11 @@
"item_type": "光円錐",
"rank_type": "4"
},
"22008": {
"name": "{RUBY_B#ちへいせん}地平線{RUBY_E#}のゴールへ",
"item_type": "光円錐",
"rank_type": "4"
},
"23000": {
"name": "{RUBY_B#ぎんがてつどう}銀河鉄道{RUBY_E#}の{RUBY_B#よる}夜{RUBY_E#}",
"item_type": "光円錐",
@@ -4696,6 +4796,16 @@
"item_type": "光円錐",
"rank_type": "5"
},
"23063": {
"name": "{RUBY_B#た}立{RUBY_E#}ち{RUBY_B#あ}上{RUBY_E#}がり{RUBY_B#たか}高{RUBY_E#}らかな{RUBY_B#うた}歌{RUBY_E#}を",
"item_type": "光円錐",
"rank_type": "5"
},
"23064": {
"name": "{RUBY_B#なみ}波{RUBY_E#}しぶきが{RUBY_B#おど}躍{RUBY_E#}る{RUBY_B#なつ}夏{RUBY_E#}へ",
"item_type": "光円錐",
"rank_type": "5"
},
"24000": {
"name": "とある{RUBY_B#アイオーン}星神{RUBY_E#}の{RUBY_B#うんらく}殞落{RUBY_E#}を{RUBY_B#しる}記{RUBY_E#}す",
"item_type": "光円錐",
@@ -5156,6 +5266,16 @@
"item_type": "キャラ",
"rank_type": "5"
},
"1512": {
"name": "ロビン・{RUBY_B#なつぞら}夏空{RUBY_E#}の{RUBY_B#うた}歌{RUBY_E#}",
"item_type": "キャラ",
"rank_type": "5"
},
"1513": {
"name": "アベンチュリン・{RUBY_B#なみ}波{RUBY_E#}と{RUBY_B#たわむ}戯{RUBY_E#}れる{RUBY_B#なつ}夏{RUBY_E#}",
"item_type": "キャラ",
"rank_type": "5"
},
"8001": {
"name": "{NICKNAME}",
"item_type": "キャラ",
@@ -5648,6 +5768,11 @@
"item_type": "무기",
"rank_type": "4"
},
"21066": {
"name": "짧은 휴가",
"item_type": "무기",
"rank_type": "4"
},
"22000": {
"name": "초보자 임무 시작 전",
"item_type": "무기",
@@ -5688,6 +5813,11 @@
"item_type": "무기",
"rank_type": "4"
},
"22008": {
"name": "지평선의 끝을 향해",
"item_type": "무기",
"rank_type": "4"
},
"23000": {
"name": "은하철도의 밤",
"item_type": "무기",
@@ -5998,6 +6128,16 @@
"item_type": "무기",
"rank_type": "5"
},
"23063": {
"name": "그대는 나아가 노래하리니",
"item_type": "무기",
"rank_type": "5"
},
"23064": {
"name": "파도에 내던진 한여름",
"item_type": "무기",
"rank_type": "5"
},
"24000": {
"name": "어떤 에이언즈의 몰락",
"item_type": "무기",
@@ -6458,6 +6598,16 @@
"item_type": "캐릭터",
"rank_type": "5"
},
"1512": {
"name": "로빈•서머레토",
"item_type": "캐릭터",
"rank_type": "5"
},
"1513": {
"name": "어벤츄린•웨이브",
"item_type": "캐릭터",
"rank_type": "5"
},
"8001": {
"name": "{NICKNAME}",
"item_type": "캐릭터",
@@ -6509,5 +6659,5 @@
"rank_type": "5"
}
},
"version": "4.4"
"version": "4.5"
}
+3 -3
View File
@@ -214,7 +214,7 @@ const getGachaLogs = async ({ name, key }, queryString) => {
let region_time_zone = ''
let endId = '0'
let gachaURLPath = ['21', '22'].includes(key) ? 'getLdGachaLog' : 'getGachaLog'
const url = `${apiDomain}/common/gacha_record/api/${gachaURLPath}?${queryString}`
const url = `${apiDomain}/common/hkrpg_gacha_record/api/${gachaURLPath}?${queryString}`
do {
// if (page % 10 === 0) {
// sendMsg(i18n.parse(text.fetch.interval, { name, page }))
@@ -280,7 +280,7 @@ const checkResStatus = (res) => {
}
const tryGetUid = async (queryString) => {
const url = `${apiDomain}/common/gacha_record/api/getGachaLog?${queryString}`
const url = `${apiDomain}/common/hkrpg_gacha_record/api/getGachaLog?${queryString}`
try {
for (let [key] of defaultTypeMap) {
const res = await request(`${url}&gacha_type=${key}&page=1&size=6`)
@@ -378,7 +378,7 @@ const getUrlFromConfig = () => {
const tryRequest = async (url, retry = false) => {
const queryString = getQuerystring(url)
if (!queryString) return false
const gachaTypeUrl = `${apiDomain}/common/gacha_record/api/getGachaLog?${queryString}&page=1&size=5&gacha_type=1&end_id=0`
const gachaTypeUrl = `${apiDomain}/common/hkrpg_gacha_record/api/getGachaLog?${queryString}&page=1&size=5&gacha_type=1&end_id=0`
try {
const res = await request(gachaTypeUrl)
checkResStatus(res)