|
|
|
@ -3,6 +3,7 @@ package user
|
|
|
|
|
import (
|
|
|
|
|
"live/app/lib"
|
|
|
|
|
"live/app/lib/recook"
|
|
|
|
|
"live/app/model/momentscopy"
|
|
|
|
|
"live/app/model/short"
|
|
|
|
|
"live/app/model/topic"
|
|
|
|
|
"live/app/model/user"
|
|
|
|
@ -87,11 +88,26 @@ func (t *Trend) GetList(loginUserId, userId uint, page lib.Page) *recook.TrendLi
|
|
|
|
|
}
|
|
|
|
|
//根据需求,返回视频的状态,风险或安全,审核中或审核失败通过
|
|
|
|
|
for i, k := range list.List {
|
|
|
|
|
if k.Short.MediaUrl != "" {
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
if len(k.ImgList) > 1 {
|
|
|
|
|
var gm momentscopy.MomentsCopy
|
|
|
|
|
(&momentscopy.MomentsCopy{}).GetDb().Where("id=?", k.OriginID).First(&gm)
|
|
|
|
|
list.List[i].Compliance = gm.Compliance
|
|
|
|
|
if gm.Reviewing == 0 {
|
|
|
|
|
list.List[i].PassStatus = 2
|
|
|
|
|
} else if gm.Reviewing == 1 {
|
|
|
|
|
list.List[i].PassStatus = 0
|
|
|
|
|
} else if gm.Reviewing == 2 {
|
|
|
|
|
list.List[i].PassStatus = 1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return list
|
|
|
|
|
}
|
|
|
|
|