From bc92633dc89ee88a0798bdaff8e2d0a6610142ce Mon Sep 17 00:00:00 2001 From: lulu666lulu Date: Wed, 18 Oct 2023 19:26:50 +0800 Subject: [PATCH] update --- gsuid_core/utils/api/mys/api.py | 1 + gsuid_core/utils/api/mys/request.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gsuid_core/utils/api/mys/api.py b/gsuid_core/utils/api/mys/api.py index 6683344..022549f 100644 --- a/gsuid_core/utils/api/mys/api.py +++ b/gsuid_core/utils/api/mys/api.py @@ -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 diff --git a/gsuid_core/utils/api/mys/request.py b/gsuid_core/utils/api/mys/request.py index bcaa406..619e841 100644 --- a/gsuid_core/utils/api/mys/request.py +++ b/gsuid_core/utils/api/mys/request.py @@ -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={