fix(huya): 查询角色复用协作台账 CK 探针并标记失效
This commit is contained in:
@@ -58,6 +58,7 @@ class EliteMixin:
|
||||
def _resolve_uid(self, account_info: dict) -> int: ...
|
||||
def _shop_client(self, uid: int, cookie: str): ...
|
||||
def _activity_client(self, uid: int, cookie: str): ...
|
||||
def _http_client(self): ...
|
||||
def _mark_task(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
# 来自 BindMixin
|
||||
@@ -348,12 +349,19 @@ class EliteMixin:
|
||||
if not b_act_id_int:
|
||||
failures.append("未配置绑定 bActId")
|
||||
else:
|
||||
bind_client: Any = self._activity_client(uid, cookie)
|
||||
outer_act_id = str(
|
||||
self.payload.get("outer_act_id")
|
||||
or config_info.get("outer_act_id")
|
||||
or ""
|
||||
).strip()
|
||||
bind_client: Any = self._http_client()
|
||||
bind_status, bind_query_result = self._resolve_bind_status(
|
||||
client=bind_client,
|
||||
uid=uid,
|
||||
cookie=cookie,
|
||||
b_act_id_int=b_act_id_int,
|
||||
outer_act_id=outer_act_id,
|
||||
timeout=15.0,
|
||||
)
|
||||
if bind_status is None:
|
||||
ck_expired = True
|
||||
|
||||
Reference in New Issue
Block a user