diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index df746a57..7258478f 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -2615,6 +2615,23 @@ func (s *Service) ApiUpdateZoneMoment(ctx *gin.Context, req *zonemomentproto.Api textaudit.AddTasks(textaudittasks) videomoderation.AddTasks(videomoderationtasks) + // 设置价格 + if req.ZoneMoment.GetCType() == consts.ZoneMomentCType_Paid { + err = _DefaultVas.UpdateZoneMomentPrice(ctx, &vasproto.UpdateZoneMomentPriceReq{ + ZoneMomentPrice: &dbstruct.ZoneMomentPrice{ + MomentId: req.ZoneMoment.GetId(), + Zid: req.ZoneMoment.GetZid(), + Mid: req.ZoneMoment.GetMid(), + Price: *req.ZoneMoment.Price, + }, + }) + if err != nil { + logger.Error("UpdateZoneMomentPrice fail, req: %v, err: %v", util.ToJson(req), err) + ec = errcode.ErrCodeZoneMomentSrvFail + return + } + } + return }