作者 yangfu

我提交的修改

@@ -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 }