...
|
...
|
@@ -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
|
|
|
}
|
...
|
...
|
@@ -219,7 +219,7 @@ func SetChanceItem(header *protocol.RequestHeader, chance protocol.CommChanceIte |
|
|
Id: chance.ChanceId,
|
|
|
Provider: provider,
|
|
|
CreateTime: chance.CreateTime.Unix() * 1000,
|
|
|
//PublicStatus: chance.PublishStatus,
|
|
|
PublicStatus: chance.PublishStatus,
|
|
|
}
|
|
|
utils.JsonUnmarshal(chance.SourceContent, &item.FormList)
|
|
|
item.FormList = ClearEmptyForm(item.FormList)
|
...
|
...
|
|