From 5b273b094917bf8a839670a8ca394107e697e19c Mon Sep 17 00:00:00 2001 From: Leufolium Date: Tue, 19 Nov 2024 15:56:46 +0800 Subject: [PATCH] 1 --- app/mix/service/apiservice.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index b83c13f6..a9a9507d 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -2248,10 +2248,8 @@ func (s *Service) ApiUpdateMoment(ctx *gin.Context, req *momentproto.ApiUpdateRe err := _DefaultMoment.OpUpdate(ctx, &momentproto.OpUpdateReq{ Moment: &dbstruct.Moment{ - Id: req.Moment.Id, - Status: req.Status, - Text: req.Text, - MediaComp: req.MediaComp, + Id: req.Moment.Id, + Status: goproto.Int64(consts.Moment_Auditing), }, }) if err == qmgo.ErrNoSuchDocuments { @@ -2285,7 +2283,7 @@ func (s *Service) ApiUpdateMoment(ctx *gin.Context, req *momentproto.ApiUpdateRe if len(imageaudittasks) > 0 || len(textaudittasks) > 0 || len(videomoderationtasks) > 0 { // 封装动态审核任务 momentAuditTask := &dbstruct.MomentAuditTask{ - AssociativeTableId: goproto.String(fmt.Sprint(util.DerefInt64(req.Moment.Id))), + AssociativeTableId: goproto.String(fmt.Sprint(req.Moment.GetId())), ManuallyReviewStatus: goproto.Int64(consts.MomentManuallyReview_Waiting), } -- 2.41.0