🎨 调整逻辑 (#595)

* update salt version

* update signing

* 🚨 `pre-commit-ci`修复格式错误

* update

* update

* 🚨 `pre-commit-ci`修复格式错误

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
lulu666lulu 2023-10-18 22:03:29 +08:00 committed by GitHub
parent 998dd1a7b6
commit b142282281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,6 @@ from copy import deepcopy
from typing import Dict, Literal
from httpx import AsyncClient
from gsuid_core.logger import logger
from gsuid_core.utils.api.mys.tools import (
random_hex,
@ -306,7 +305,7 @@ class MihoyoBBSCoin:
data: Dict = {},
) -> Dict:
for _ in range(2):
if data != {}:
if BBS_SIGN_URL in url:
header['DS'] = get_ds_token('', data, '22')
async with AsyncClient(timeout=None) as client:
req = await client.request(