...
|
...
|
@@ -800,6 +800,7 @@ func MySubmitChance(header *protocol.RequestHeader, request *protocol.MySubmitCh |
|
|
jsonUnmarshal(chance.Videos, &item.Videos)
|
|
|
commItem.Chance = item
|
|
|
}
|
|
|
commItem.ReviewStatus = chance.ReviewStatus
|
|
|
if request.ReviewStatus == protocol.ReviewStatusPass {
|
|
|
jsonUnmarshal(chance.ApproveData, &commItem.ApproveData)
|
|
|
}
|
...
|
...
|
@@ -828,6 +829,7 @@ func MyApproveChance(header *protocol.RequestHeader, request *protocol.MyApprove |
|
|
for i := 0; i < len(myChances); i++ {
|
|
|
chance := myChances[i]
|
|
|
commItem := protocol.CommonListItem{}
|
|
|
commItem.ReviewStatus = chance.ReviewStatus
|
|
|
if len(chance.SourceContent) == 0 { //机会删除
|
|
|
commItem.ChanceStatus = protocol.ChanceStatusDelete
|
|
|
} else if chance.ChanceEnableStatus == 0 { //机会关闭
|
...
|
...
|
@@ -839,7 +841,7 @@ func MyApproveChance(header *protocol.RequestHeader, request *protocol.MyApprove |
|
|
//return
|
|
|
} else {
|
|
|
item := protocol.ChanceItem{
|
|
|
Id: chance.Id,
|
|
|
Id: chance.ChanceId,
|
|
|
Provider: provider,
|
|
|
//CreateTime: chance.CreateTime.Unix() * 1000,
|
|
|
}
|
...
|
...
|
@@ -868,7 +870,9 @@ func MyApproveChance(header *protocol.RequestHeader, request *protocol.MyApprove |
|
|
if request.ReviewStatus == protocol.ReviewStatusPass {
|
|
|
var approveData *protocol.ApproveData
|
|
|
jsonUnmarshal(chance.ApproveData, &approveData)
|
|
|
commItem.Score = approveData.Score
|
|
|
if approveData != nil {
|
|
|
commItem.Score = approveData.Score
|
|
|
}
|
|
|
}
|
|
|
rsp.List = append(rsp.List, commItem)
|
|
|
}
|
...
|
...
|
@@ -938,6 +942,7 @@ func ChanceDetail(header *protocol.RequestHeader, request *protocol.ChanceDetail |
|
|
}
|
|
|
jsonUnmarshal(chance.ApproveData, &rsp.ApproveData)
|
|
|
rsp.ChanceDetail = item
|
|
|
rsp.ReviewStatus = int(chance.ReviewStatus)
|
|
|
if approveProcess, err = ChanceApproveProcess(header, chance); err != nil {
|
|
|
log.Error(err)
|
|
|
return
|
...
|
...
|
|