👀👀👀👀

This commit is contained in:
bietiaop 2024-08-16 21:09:42 +08:00
parent 8e3ee9188e
commit 6eaf8c0e90
3 changed files with 88 additions and 12 deletions

View file

@ -20,6 +20,7 @@ export default class ZZZApiTool {
this.host = 'https://api-takumi.mihoyo.com/';
this.hostRecord = 'https://api-takumi-record.mihoyo.com/';
this.hostPublicData = 'https://public-data-api.mihoyo.com/';
this.hostBbs = 'https://bbs-api.miyoushe.com/';
} else {
this.gameBiz = 'nap_global';
this.host = 'https://sg-public-api.hoyolab.com/';
@ -104,6 +105,28 @@ export default class ZZZApiTool {
},
noDs: true,
},
deviceLogin: {
url: `${this.hostBbs}apihub/api/deviceLogin`,
body: {
app_version: '2.73.1',
device_id: data.deviceId,
device_name: `${deviceBrand}${modelName}`,
os_version: '33',
platform: 'Android',
registration_id: generateSeed(19),
},
},
saveDevice: {
url: `${this.hostBbs}apihub/api/saveDevice`,
body: {
app_version: '2.73.1',
device_id: data.deviceId,
device_name: `${deviceBrand}${modelName}`,
os_version: '33',
platform: 'Android',
registration_id: generateSeed(19),
},
},
}
: {
getFp: {