This commit is contained in:
lulu666lulu 2023-10-18 19:26:50 +08:00
parent 5854d70978
commit bc92633dc8
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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={