This commit is contained in:
baiqwerdvd 2024-12-09 14:16:21 +08:00
parent 5aaa1abe03
commit 6072f3251d
No known key found for this signature in database
GPG Key ID: 7717E46E1797411A
2 changed files with 4 additions and 4 deletions

View File

@ -45,9 +45,9 @@ async def get_ap_img(bot_id: str, user_id: str):
if uid_list is None:
return "请先绑定一个可用CRED & UID再来查询哦~"
for uid in uid_list:
status = await ark_skd_api.check_cred_valid(uid=uid)
if status is not bool:
useable_uid_list.append(uid)
# status = await ark_skd_api.check_cred_valid(uid=uid)
# if status is not bool:
useable_uid_list.append(uid)
logger.info(f"[每日信息]可用UID: {useable_uid_list}")
if len(useable_uid_list) == 0:
return "请先绑定一个可用CRED & UID再来查询哦~"

View File

@ -311,7 +311,7 @@ class BaseArkApi:
await self.refresh_token(header["cred"])
headers = deepcopy(header)
headers["cred"] = header["cred"]
# headers["dId"] = await get_d_id()
headers["dId"] = await get_d_id()
headers = get_sign_header(headers["cred"], url, method, data, headers)
raw_data = await self._ark_request(
url=url,