mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix:国际服api
This commit is contained in:
parent
ac0c3d0d6c
commit
3425eae56f
1 changed files with 11 additions and 16 deletions
|
|
@ -21,7 +21,7 @@ export default class ZZZApiTool {
|
|||
this.hostPublicData = 'https://public-data-api.mihoyo.com/';
|
||||
} else {
|
||||
this.host = 'https://sg-public-api.hoyolab.com/';
|
||||
this.hostRecord = 'https://bbs-api-os.hoyolab.com/';
|
||||
this.hostNap = 'https://sg-act-nap-api.hoyolab.com/';
|
||||
this.hostPublicData = 'https://sg-public-data-api.hoyoverse.com/';
|
||||
}
|
||||
this.zzzUrlMap = {
|
||||
|
|
@ -102,24 +102,19 @@ 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.zzzUser.url = `${this.host}binding/api/getUserGameRolesByCookie`;
|
||||
urlMap.zzz.zzzUser.query = `game_biz=nap_global®ion=${this.server}&game_uid=${this.uid}`;
|
||||
urlMap.zzz.zzzNote.url = `${this.hostNap}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.url = `${this.hostNap}event/game_record_zzz/api/zzz/index`;
|
||||
urlMap.zzz.zzzIndex.query = `lang=zh-cn&role_id=${this.uid}&server=${this.server}`;
|
||||
urlMap.zzz.zzzAvatarList.url =
|
||||
'https://sg-act-nap-api.hoyolab.com/event/game_record_zzz/api/zzz/avatar/basic';
|
||||
urlMap.zzz.zzzAvatarList.query = `role_id=${this.uid}&server=${this.server}`;
|
||||
urlMap.zzz.zzzAvatarInfo.url =
|
||||
'https://sg-act-nap-api.hoyolab.com/event/game_record_zzz/api/zzz/avatar/info';
|
||||
urlMap.zzz.zzzAvatarInfo.query = `role_id=${this.uid}&server=${this.server}&need_wiki=false`;
|
||||
urlMap.zzz.zzzBuddyList.url =
|
||||
'https://sg-act-nap-api.hoyolab.com/event/game_record_zzz/api/zzz/buddy/info';
|
||||
urlMap.zzz.zzzAvatarList.url = `${this.hostNap}event/game_record_zzz/api/zzz/avatar/basic`;
|
||||
urlMap.zzz.zzzAvatarList.query = `lang=zh-cn&role_id=${this.uid}&server=${this.server}`;
|
||||
urlMap.zzz.zzzAvatarInfo.url = `${this.hostNap}event/game_record_zzz/api/zzz/avatar/info`;
|
||||
urlMap.zzz.zzzAvatarInfo.query = `lang=zh-cn&role_id=${this.uid}&server=${this.server}&need_wiki=false`;
|
||||
urlMap.zzz.zzzBuddyList.url = `${this.hostNap}event/game_record_zzz/api/zzz/buddy/info`;
|
||||
urlMap.zzz.zzzBuddyList.query = `role_id=${this.uid}&server=${this.server}`;
|
||||
urlMap.zzzUser.url = `${this.host}binding/api/getUserGameRolesByCookie`;
|
||||
urlMap.zzzUser.query = `game_biz=nap_global®ion=${this.server}&game_uid=${this.uid}`;
|
||||
}
|
||||
return urlMap[this.game];
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue