|
|
|
@ -88,20 +88,20 @@ func (t *Trend) GetList(loginUserId, userId uint, page lib.Page) *recook.TrendLi
|
|
|
|
|
}
|
|
|
|
|
//根据需求,返回视频的状态,风险或安全,审核中或审核失败通过
|
|
|
|
|
for i, k := range list.List {
|
|
|
|
|
if k.Short.MediaUrl != "" {
|
|
|
|
|
if k.TrendType == 2 {
|
|
|
|
|
var a short.Short
|
|
|
|
|
(&short.Short{}).GetDb().Where("id=?", k.OriginID).First(&a)
|
|
|
|
|
list.List[i].Compliance = a.Compliance
|
|
|
|
|
list.List[i].PassStatus = a.Pass
|
|
|
|
|
} else if len(k.ImgList) >= 1 {
|
|
|
|
|
} else if k.TrendType == 1 {
|
|
|
|
|
var gm momentscopy.MomentsCopy
|
|
|
|
|
(&momentscopy.MomentsCopy{}).GetDb().Where("id=?", k.OriginID).First(&gm)
|
|
|
|
|
(&momentscopy.MomentsCopy{}).GetDb().Table("recook_goods_moments_copy").Where("id=?", k.OriginID).First(&gm)
|
|
|
|
|
list.List[i].Compliance = gm.Compliance
|
|
|
|
|
if gm.Reviewing == 0 {
|
|
|
|
|
if gm.Reviewing == 0 { //审核通过
|
|
|
|
|
list.List[i].PassStatus = 2
|
|
|
|
|
} else if gm.Reviewing == 1 {
|
|
|
|
|
} else if gm.Reviewing == 1 { //审核中
|
|
|
|
|
list.List[i].PassStatus = 0
|
|
|
|
|
} else if gm.Reviewing == 2 {
|
|
|
|
|
} else if gm.Reviewing == 2 { //驳回
|
|
|
|
|
list.List[i].PassStatus = 1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|