作者 yangfu

修改成果详情 公开状态

... ... @@ -109,7 +109,7 @@ func ValidChancePermission(uid, cid int64, items []*protocol.CommonListItem) (er
}
log.Debug(fmt.Sprintf("user:%v check:%v is_admin:%v ", uid, check, user.Id == uid))
for i := range items {
log.Debug("测试:", items[i].ChanceId, items[i].ChanceStatus)
//log.Debug("测试:", items[i].ChanceId, items[i].ChanceStatus)
if items[i].ChanceStatus != 0 {
continue
}
... ... @@ -216,10 +216,10 @@ func SetChanceItem(header *protocol.RequestHeader, chance protocol.CommChanceIte
}
item = protocol.ChanceItem{
Id: chance.ChanceId,
Provider: provider,
CreateTime: chance.CreateTime.Unix() * 1000,
//PublicStatus: chance.PublishStatus,
Id: chance.ChanceId,
Provider: provider,
CreateTime: chance.CreateTime.Unix() * 1000,
PublicStatus: chance.PublishStatus,
}
utils.JsonUnmarshal(chance.SourceContent, &item.FormList)
item.FormList = ClearEmptyForm(item.FormList)
... ...