作者 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 }
@@ -216,10 +216,10 @@ func SetChanceItem(header *protocol.RequestHeader, chance protocol.CommChanceIte @@ -216,10 +216,10 @@ func SetChanceItem(header *protocol.RequestHeader, chance protocol.CommChanceIte
216 } 216 }
217 217
218 item = protocol.ChanceItem{ 218 item = protocol.ChanceItem{
219 - Id: chance.ChanceId,  
220 - Provider: provider,  
221 - CreateTime: chance.CreateTime.Unix() * 1000,  
222 - //PublicStatus: chance.PublishStatus, 219 + Id: chance.ChanceId,
  220 + Provider: provider,
  221 + CreateTime: chance.CreateTime.Unix() * 1000,
  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)