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
bc92633dc8
commit
c354be40d5
@ -428,11 +428,19 @@ class MysApi(BaseMysApi):
|
|||||||
# 代码来源:GITHUB项目MIT开源
|
# 代码来源:GITHUB项目MIT开源
|
||||||
_pass_api = core_plugins_config.get_config('_pass_API').data
|
_pass_api = core_plugins_config.get_config('_pass_API').data
|
||||||
if _pass_api:
|
if _pass_api:
|
||||||
data = await self._mys_request(
|
async with ClientSession(
|
||||||
|
connector=TCPConnector(verify_ssl=ssl_verify)
|
||||||
|
) as client:
|
||||||
|
async with client.request(
|
||||||
url=f'{_pass_api}>={gt}&challenge={ch}',
|
url=f'{_pass_api}>={gt}&challenge={ch}',
|
||||||
method='GET',
|
method='GET',
|
||||||
header=header,
|
header=header,
|
||||||
)
|
)as data:
|
||||||
|
try:
|
||||||
|
data = await data.json()
|
||||||
|
except ContentTypeError:
|
||||||
|
data = await data.text()
|
||||||
|
return None, None
|
||||||
if isinstance(data, int):
|
if isinstance(data, int):
|
||||||
return None, None
|
return None, None
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user