Merge branch 'dev-lwl/wx' into test

This commit is contained in:
lwl0608 2024-05-08 09:54:30 +08:00
commit 034ea2f436
1 changed files with 17 additions and 0 deletions

View File

@ -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
}