mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
添加部分国际服支持
This commit is contained in:
parent
dcbd1722d1
commit
a0c3464f4d
2 changed files with 17 additions and 11 deletions
|
|
@ -23,7 +23,7 @@ export default class ZZZApiTool {
|
|||
host = 'https://api-takumi.mihoyo.com/';
|
||||
hostRecord = 'https://api-takumi-record.mihoyo.com/';
|
||||
hostPublicData = 'https://public-data-api.mihoyo.com/';
|
||||
} else if (/prod_gf_/.test(this.server)) {
|
||||
} else {
|
||||
host = 'https://sg-public-api.hoyolab.com/';
|
||||
hostRecord = 'https://bbs-api-os.hoyolab.com/';
|
||||
hostPublicData = 'https://sg-public-data-api.hoyoverse.com/';
|
||||
|
|
@ -90,6 +90,13 @@ export default class ZZZApiTool {
|
|||
},
|
||||
},
|
||||
};
|
||||
|
||||
if (/_us|_eu|_jp|_sg/.test(this.server)) {
|
||||
urlMap.zzz.zzzNote.url = 'https://sg-act-nap-api.hoyolab.com/event/game_record_zzz/api/zzz/note'
|
||||
urlMap.zzz.zzzNote.query = `role_id=${this.uid}&server=${this.server}`
|
||||
urlMap.zzz.zzzIndex.url = 'https://sg-act-nap-api.hoyolab.com/event/game_record_zzz/api/zzz/index'
|
||||
urlMap.zzz.zzzIndex.query = `role_id=${this.uid}&server=${this.server}`
|
||||
};
|
||||
return urlMap[this.game];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue