fix(huya): 精英宝典绑定二维码对齐最新抓包并支持配置 bind_gid

This commit is contained in:
yml2213
2026-11-09 21:01:42 +08:00
parent 7282787398
commit 5f1d78e1e4
16 changed files with 446 additions and 80 deletions
+5 -1
View File
@@ -228,7 +228,11 @@ class HuyaBatchRunnerCore:
def _format_local_time(timestamp: int) -> str:
if not timestamp:
return ""
return datetime.fromtimestamp(timestamp, UTC).strftime("%Y-%m-%d %H:%M:%S")
return (
datetime.fromtimestamp(timestamp, UTC)
.astimezone()
.strftime("%Y-%m-%d %H:%M:%S")
)
@staticmethod
def _parse_scheduled_time(value) -> datetime | None: