作者 yangfu

Merge remote-tracking branch 'origin/test'

... ... @@ -76,7 +76,7 @@ const (
var (
MessageApproving = "提交了一条%v机会消息,需要您审核"
MessageApproveSuccess = "审核通过提交的%v机会"
MessageApproveSuccess = "审核通过提交的%v机会"
MessageApproveReject = "退回了您提交的%v机会"
MessageZanChance = "点赞了您发布的机会"
... ...
... ... @@ -14,9 +14,9 @@ import (
var (
MessageApproving = "提交了一条%v机会消息,需要您审核"
MessageApproveSuccess = "审核通过提交的%v机会"
MessageApproveSuccess = "审核通过提交的%v机会"
MessageApproveReject = "退回了您提交的%v机会"
MessageApproveAutoPass = "自动审核通过提交的%v机会"
MessageApproveAutoPass = "自动审核通过提交的%v机会"
)
//发送审批消息
... ...
... ... @@ -328,13 +328,13 @@ func MsgChanceApprove(header *protocol.RequestHeader, request *protocol.MsgChanc
commItem.Chance = item
}
if chance.ReviewStatus == protocol.ReviewStatusPass {
var approveData *protocol.ApproveData
utils.JsonUnmarshal(chance.ApproveData, &approveData)
if approveData != nil {
commItem.Score = approveData.Score
}
}
//if chance.ReviewStatus == protocol.ReviewStatusPass {
// var approveData *protocol.ApproveData
// utils.JsonUnmarshal(chance.ApproveData, &approveData)
// if approveData != nil {
// commItem.Score = approveData.Score
// }
//}
commItem.MsgId = chance.Id
commItem.MsgTime = chance.MsgTime.Unix() * 1000
//审核完有审核数据
... ...