From eec07ab1d74a314eec4e4f3713988db2e393f725 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 29 Feb 2024 02:05:10 +0800 Subject: [PATCH] by Robin at 20240229; fix --- app/mix/service/imageauditservice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mix/service/imageauditservice.go b/app/mix/service/imageauditservice.go index d0b4f5eb..9ee8d0a8 100644 --- a/app/mix/service/imageauditservice.go +++ b/app/mix/service/imageauditservice.go @@ -60,7 +60,7 @@ func (s *Service) CreateUpdateStreamerImageAudit(ctx *gin.Context, oldStreamer * func (s *Service) CreateMomentImageAudit(ctx *gin.Context, newMoment *dbstruct.Moment) (tasks []*dbstruct.ImageAuditTask) { - if newMoment.MediaComp != nil && newMoment.MediaComp.ImageIds != nil { + if newMoment.MediaComp != nil && len(newMoment.MediaComp.GetImageIds()) > 0 { tasks = append(tasks, &dbstruct.ImageAuditTask{ RouteUrl: goproto.String(ctx.Request.URL.Path), AssociativeDatabase: goproto.String("moment"),