作者 yangfu

修改成果详情 公开状态

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