完成 Ruff 全量清理
This commit is contained in:
@@ -137,7 +137,7 @@ class HuyaVerificationSolver:
|
||||
max_width = max(bg.shape[1], tip.shape[1])
|
||||
|
||||
def pad_right(img, target_width):
|
||||
height, width = img.shape[:2]
|
||||
_height, width = img.shape[:2]
|
||||
if width >= target_width:
|
||||
return img
|
||||
return cv2.copyMakeBorder(
|
||||
@@ -299,8 +299,8 @@ class HuyaVerificationSolver:
|
||||
"虎牙登录风控strategys完整结构: {}",
|
||||
json.dumps(strategies, ensure_ascii=False)[:1200],
|
||||
)
|
||||
except Exception: # noqa: BLE001
|
||||
pass
|
||||
except Exception as exc: # noqa: BLE001
|
||||
logger.debug(f"风控策略日志序列化失败: {exc}")
|
||||
strategy_url_lower = strategy_url.lower()
|
||||
# 判定依据是 URL 路径,不是 strategy 数值。
|
||||
# 实测(2026-08-25): strategy=64 时 pt_auth.html 是滑块、qr_auth.html 才是扫码,
|
||||
|
||||
Reference in New Issue
Block a user