正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -407,10 +407,10 @@ func MsgChanceSubmit(header *protocol.RequestHeader, request *protocol.MsgChance | @@ -407,10 +407,10 @@ func MsgChanceSubmit(header *protocol.RequestHeader, request *protocol.MsgChance | ||
407 | commItem.MsgId = chance.Id | 407 | commItem.MsgId = chance.Id |
408 | commItem.MsgTime = chance.MsgTime.Unix() * 1000 | 408 | commItem.MsgTime = chance.MsgTime.Unix() * 1000 |
409 | commItem.ChanceId = chance.ChanceId | 409 | commItem.ChanceId = chance.ChanceId |
410 | - rsp.List = append(rsp.List, commItem) | ||
411 | if commItem.ChanceId == 0 && chance.SourceId > 0 { | 410 | if commItem.ChanceId == 0 && chance.SourceId > 0 { |
412 | commItem.ChanceId = chance.SourceId | 411 | commItem.ChanceId = chance.SourceId |
413 | } | 412 | } |
413 | + rsp.List = append(rsp.List, commItem) //非指针 append对象完 再修改数据也是无效 | ||
414 | } | 414 | } |
415 | return | 415 | return |
416 | } | 416 | } |
-
请 注册 或 登录 后发表评论