Merge branch 'dev-lwl/wx' into test
This commit is contained in:
commit
034ea2f436
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue