1 #808
|
@ -2248,10 +2248,8 @@ func (s *Service) ApiUpdateMoment(ctx *gin.Context, req *momentproto.ApiUpdateRe
|
||||||
|
|
||||||
err := _DefaultMoment.OpUpdate(ctx, &momentproto.OpUpdateReq{
|
err := _DefaultMoment.OpUpdate(ctx, &momentproto.OpUpdateReq{
|
||||||
Moment: &dbstruct.Moment{
|
Moment: &dbstruct.Moment{
|
||||||
Id: req.Moment.Id,
|
Id: req.Moment.Id,
|
||||||
Status: req.Status,
|
Status: goproto.Int64(consts.Moment_Auditing),
|
||||||
Text: req.Text,
|
|
||||||
MediaComp: req.MediaComp,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if err == qmgo.ErrNoSuchDocuments {
|
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 {
|
if len(imageaudittasks) > 0 || len(textaudittasks) > 0 || len(videomoderationtasks) > 0 {
|
||||||
// 封装动态审核任务
|
// 封装动态审核任务
|
||||||
momentAuditTask := &dbstruct.MomentAuditTask{
|
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),
|
ManuallyReviewStatus: goproto.Int64(consts.MomentManuallyReview_Waiting),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue