BUG-20240729 #656
|
@ -1462,12 +1462,18 @@ func (s *Service) OpReviewMoment(ctx *gin.Context, req *momentproto.OpReviewReq)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新动态的状态
|
// 更新请求,如果是通过,则恢复删除标志
|
||||||
err := _DefaultMoment.OpUpdateByIdsAndStatus(ctx, &momentproto.OpUpdateReq{
|
updateReq := &momentproto.OpUpdateReq{
|
||||||
Moment: &dbstruct.Moment{
|
Moment: &dbstruct.Moment{
|
||||||
Status: goproto.Int64(finalMomentStatus),
|
Status: goproto.Int64(finalMomentStatus),
|
||||||
},
|
},
|
||||||
}, req.MomentIds, consts.Moment_ManuallyReviewing)
|
}
|
||||||
|
if req.OpType == consts.MomentManuallyReview_Pass {
|
||||||
|
updateReq.Moment.DelFlag = goproto.Int64(consts.Exist)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新动态的状态
|
||||||
|
err := _DefaultMoment.OpUpdateByIdsAndStatus(ctx, updateReq, req.MomentIds, consts.Moment_ManuallyReviewing)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Error("_DefaultMoment OpUpdateByIds fail, req: %v, err: %v", util.ToJson(req), err)
|
logger.Error("_DefaultMoment OpUpdateByIds fail, req: %v, err: %v", util.ToJson(req), err)
|
||||||
ec = errcode.ErrCodeMomentSrvFail
|
ec = errcode.ErrCodeMomentSrvFail
|
||||||
|
|
|
@ -77,7 +77,58 @@ type Video struct {
|
||||||
Fmt string `json:"fmt" bson:"fmt"`
|
Fmt string `json:"fmt" bson:"fmt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var SrcVidMap = map[int64]bool{
|
||||||
|
130337: true,
|
||||||
|
130333: true,
|
||||||
|
130319: true,
|
||||||
|
127635: true,
|
||||||
|
126370: true,
|
||||||
|
126360: true,
|
||||||
|
123141: true,
|
||||||
|
123091: true,
|
||||||
|
120215: true,
|
||||||
|
120194: true,
|
||||||
|
120186: true,
|
||||||
|
120184: true,
|
||||||
|
118368: true,
|
||||||
|
118124: true,
|
||||||
|
117231: true,
|
||||||
|
117209: true,
|
||||||
|
113009: true,
|
||||||
|
112996: true,
|
||||||
|
111162: true,
|
||||||
|
110511: true,
|
||||||
|
109734: true,
|
||||||
|
108184: true,
|
||||||
|
107836: true,
|
||||||
|
106902: true,
|
||||||
|
104865: true,
|
||||||
|
104863: true,
|
||||||
|
103998: true,
|
||||||
|
103996: true,
|
||||||
|
103982: true,
|
||||||
|
103752: true,
|
||||||
|
100327: true,
|
||||||
|
100315: true,
|
||||||
|
99188: true,
|
||||||
|
97052: true,
|
||||||
|
97044: true,
|
||||||
|
95953: true,
|
||||||
|
95934: true,
|
||||||
|
95063: true,
|
||||||
|
94282: true,
|
||||||
|
93427: true,
|
||||||
|
92073: true,
|
||||||
|
91566: true,
|
||||||
|
91546: true,
|
||||||
|
90964: true,
|
||||||
|
90962: true,
|
||||||
|
}
|
||||||
|
|
||||||
func (i *Video) SelectMinSizeOssId() string {
|
func (i *Video) SelectMinSizeOssId() string {
|
||||||
|
if SrcVidMap[i.Id] {
|
||||||
|
return i.SrcId
|
||||||
|
}
|
||||||
if i == nil {
|
if i == nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue