From 88052add078ddedea6aaa36cfb2b86dea5d2541d Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Sun, 24 Nov 2024 18:31:58 +0800 Subject: [PATCH] MustSelectMinSizeOssId --- dbstruct/media.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbstruct/media.go b/dbstruct/media.go index 5a95128c..13839c00 100644 --- a/dbstruct/media.go +++ b/dbstruct/media.go @@ -96,7 +96,7 @@ func (i *Video) MustSelectMinSizeOssId() string { if i == nil { return "" } - if i.Status == VideoStatusResizeDone && len(i.SrcId720) > 0 && i.Size720 < i.SizeSrc { + if i.Status == VideoStatusResizeDone && len(i.SrcId720) > 0 { return i.SrcId720 } return i.SrcId