mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-12 06:55:49 +08:00
update
This commit is contained in:
parent
5854d70978
commit
bc92633dc8
@ -37,6 +37,7 @@ BBS_VERIFICATION_URL = (
|
||||
f'{NEW_BBS_URL}/misc/api/createVerification?is_high=true'
|
||||
)
|
||||
VERIFY_URL = f'{NEW_URL}/game_record/app/card/wapi/verifyVerification'
|
||||
BBS_VERIFY_URL = f'{NEW_BBS_URL}/misc/api/verifyVerification'
|
||||
|
||||
'''账号相关'''
|
||||
# 通过LoginTicket获取Stoken
|
||||
|
@ -457,7 +457,7 @@ class MysApi(BaseMysApi):
|
||||
vl, ch = await self._pass(gt, ch, header)
|
||||
|
||||
if vl:
|
||||
await self.get_header_and_vl(header, ch, vl)
|
||||
await self.get_header_and_vl(header, ch, vl, is_bbs)
|
||||
if ch:
|
||||
logger.info(f'[upass] 获取ch -> {ch}')
|
||||
return ch
|
||||
@ -482,7 +482,7 @@ class MysApi(BaseMysApi):
|
||||
header=header,
|
||||
)
|
||||
|
||||
async def get_header_and_vl(self, header: Dict, ch, vl):
|
||||
async def get_header_and_vl(self, header: Dict, ch, vl, is_bbs: bool = False):
|
||||
header['DS'] = get_ds_token(
|
||||
'',
|
||||
{
|
||||
@ -492,7 +492,7 @@ class MysApi(BaseMysApi):
|
||||
},
|
||||
)
|
||||
_ = await self._mys_request(
|
||||
url=self.MAPI['VERIFY_URL'],
|
||||
url=self.MAPI['VERIFY_URL'] if not is_bbs else self.MAPI['BBS_VERIFY_URL'],
|
||||
method='POST',
|
||||
header=header,
|
||||
data={
|
||||
|
Loading…
x
Reference in New Issue
Block a user