Compare commits

...

2 Commits

Author SHA1 Message Date
413afea538 chore: idjson v3.4 2025-07-28 23:26:21 +08:00
524597f891 fix: dynamically select API path based on gacha type
- Modified `getGachaLogs()` to choose API path based on current gacha_type instead of input URL
2025-07-28 23:19:34 +08:00
2 changed files with 758 additions and 36 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -213,10 +213,7 @@ const getGachaLogs = async ({ name, key }, queryString) => {
let region = ''
let region_time_zone = ''
let endId = '0'
let gachaURLPath = 'getGachaLog'
if (queryString.includes('gacha_type=21') || queryString.includes('gacha_type=22')) {
gachaURLPath = 'getLdGachaLog'
}
let gachaURLPath = ['21', '22'].includes(key) ? 'getLdGachaLog' : 'getGachaLog'
const url = `${apiDomain}/common/gacha_record/api/${gachaURLPath}?${queryString}`
do {
// if (page % 10 === 0) {