docs: 精简项目文档并清理 Ruff 问题
This commit is contained in:
@@ -331,7 +331,8 @@ class HuyaVerificationSolver:
|
||||
if Path(font_path).is_file():
|
||||
try:
|
||||
return ImageFont.truetype(font_path, size)
|
||||
except Exception:
|
||||
except (OSError, ValueError) as exc:
|
||||
logger.debug(f"[solver] 字体加载失败 {font_path}: {exc}")
|
||||
continue
|
||||
return ImageFont.load_default()
|
||||
|
||||
@@ -699,7 +700,7 @@ class HuyaVerificationSolver:
|
||||
drag_distance = max(5, int((angle / 360.0) * 260))
|
||||
track_points = generate_slide_track(drag_distance)
|
||||
act_data = {
|
||||
"point": int(round(angle)),
|
||||
"point": round(angle),
|
||||
"travel": format_track(track_points),
|
||||
"code": self.code,
|
||||
"sceneType": self.scene_type,
|
||||
|
||||
Reference in New Issue
Block a user