mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
修正#扫码绑定错误
This commit is contained in:
parent
93ac4b90c7
commit
33719e5bba
@ -252,7 +252,7 @@ export default class miHoYoApi {
|
|||||||
},
|
},
|
||||||
getLtoken: {
|
getLtoken: {
|
||||||
url: `${mys.pass_api}/account/auth/api/getLTokenBySToken`,
|
url: `${mys.pass_api}/account/auth/api/getLTokenBySToken`,
|
||||||
query: `${data.cookies}`,
|
query: `${data?.cookies?.replace(/;/g,'&')}`,
|
||||||
},
|
},
|
||||||
//用于手动过验证码,账号密码登录需要
|
//用于手动过验证码,账号密码登录需要
|
||||||
microgg: {
|
microgg: {
|
||||||
@ -305,7 +305,7 @@ export default class miHoYoApi {
|
|||||||
"order": data.order,
|
"order": data.order,
|
||||||
"sign": this.gen_sign(data.order)
|
"sign": this.gen_sign(data.order)
|
||||||
},
|
},
|
||||||
types:'web'
|
types:'pay'
|
||||||
},
|
},
|
||||||
goodsList:{
|
goodsList:{
|
||||||
url:`${mys.hk4_sdk}/hk4e_cn/mdk/shopwindow/shopwindow/fetchGoods`,
|
url:`${mys.hk4_sdk}/hk4e_cn/mdk/shopwindow/shopwindow/fetchGoods`,
|
||||||
@ -316,12 +316,12 @@ export default class miHoYoApi {
|
|||||||
"uid": "1",
|
"uid": "1",
|
||||||
"account": "1"
|
"account": "1"
|
||||||
},
|
},
|
||||||
types:'web'
|
types:'pay'
|
||||||
},
|
},
|
||||||
checkOrder:{
|
checkOrder:{
|
||||||
url:`${mys.hk4_sdk}/hk4e_cn/mdk/atropos/api/checkOrder`,
|
url:`${mys.hk4_sdk}/hk4e_cn/mdk/atropos/api/checkOrder`,
|
||||||
query:`game=hk4e_cn®ion=${utils.getServer(data.uid)}&order_no=${data.order_no}&uid=${data.uid}`,
|
query:`game=hk4e_cn®ion=${utils.getServer(data.uid)}&order_no=${data.order_no}&uid=${data.uid}`,
|
||||||
types:'web'
|
types:'pay'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!urlMap[type]) return false
|
if (!urlMap[type]) return false
|
||||||
@ -473,21 +473,20 @@ export default class miHoYoApi {
|
|||||||
"x-rpc-device_model": utils.randomString(16),
|
"x-rpc-device_model": utils.randomString(16),
|
||||||
'x-rpc-app_version': mys.APP_VERSION,
|
'x-rpc-app_version': mys.APP_VERSION,
|
||||||
'x-rpc-game_biz': 'bbs_cn',
|
'x-rpc-game_biz': 'bbs_cn',
|
||||||
|
"x-rpc-sys_version": "11",
|
||||||
"x-rpc-aigis": '',
|
"x-rpc-aigis": '',
|
||||||
"Content-Type": "application/json;",
|
"Content-Type": "application/json;",
|
||||||
"x-rpc-client_type": "2",
|
"x-rpc-client_type": "2",
|
||||||
"DS": this.getDs2('', body, mys.passSalt),
|
"DS": this.getDs2('', body, mys.passSalt),
|
||||||
"x-rpc-sdk_version": '1.3.1.2',
|
"x-rpc-sdk_version": '1.3.1.2',
|
||||||
"User-Agent": "okhttp/4.9.3",
|
"User-Agent": "okhttp/4.8.0",
|
||||||
"Referer": "cors",
|
|
||||||
'Host': 'passport-api.mihoyo.com',
|
|
||||||
"Connection": 'Keep-Alive',
|
"Connection": 'Keep-Alive',
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
"Accept-Encoding": "gzip, deflate, br",
|
||||||
"x-rpc-channel": "appstore",
|
"x-rpc-channel": "appstore",
|
||||||
Cookie: this.cookies,
|
Cookie: this.cookies,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "web":
|
case "pay":
|
||||||
header={
|
header={
|
||||||
"Accept": "application/json, text/plain, */*",
|
"Accept": "application/json, text/plain, */*",
|
||||||
"Accept-Encoding": "gzip, deflate, br",
|
"Accept-Encoding": "gzip, deflate, br",
|
||||||
|
Loading…
Reference in New Issue
Block a user