From a2d4c00a27570c0e42a5707e489a84af327c18e6 Mon Sep 17 00:00:00 2001 From: ambitious <1535820771@qq.com> Date: Sat, 11 Jan 2025 13:00:38 +0800 Subject: [PATCH] fix: fix const --- internal/service/emby/playing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/service/emby/playing.go b/internal/service/emby/playing.go index 852b114..9b933b2 100644 --- a/internal/service/emby/playing.go +++ b/internal/service/emby/playing.go @@ -33,8 +33,8 @@ func PlayingStoppedHelper(c *gin.Context) { kType, kName, apiKey := getApiKey(c) // 至少播放 5 分钟才记录进度 - positionTicks, ok := bodyJson.Attr("PositionTicks").Int() - minPos := 5 * 60 * 10_000_000 + positionTicks, ok := bodyJson.Attr("PositionTicks").Int64() + var minPos int64 = 5 * 60 * 10_000_000 if !ok || positionTicks < minPos { return }