正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
@@ -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) |
-
请 注册 或 登录 后发表评论