作者 yangfu

我提交的修改

... ... @@ -279,7 +279,8 @@ type MsgChanceApproveItemOrm struct {
IsRead int64 `orm:"column(is_read)"`
ChanceId int64 `orm:"column(chance_id)"` // 机会id
//EnableStatus int `orm:"column(enable_status)"`
Data string `orm:"column(data)"`
SourceId int64 `orm:"column(source_id)"` // 机会id
Data string `orm:"column(data)"`
}
/*Announcement H5公告详情*/
... ...
... ... @@ -145,6 +145,7 @@ func SendApproveMsgByFormat(header *protocol.RequestHeader, receiverId int64, ch
CreateAt: time.Now(),
Data: common.AssertJson(data),
SenderUserId: header.UserId,
ChanceId: chanceId,
}
if _, err = models.AddUserMsg(userMsg); err != nil {
return
... ...
... ... @@ -408,6 +408,9 @@ func MsgChanceSubmit(header *protocol.RequestHeader, request *protocol.MsgChance
commItem.MsgTime = chance.MsgTime.Unix() * 1000
commItem.ChanceId = chance.ChanceId
rsp.List = append(rsp.List, commItem)
if commItem.ChanceId == 0 && chance.SourceId > 0 {
commItem.ChanceId = chance.SourceId
}
}
return
}
... ...