作者 yangfu

机会/补充机会详情修改

... ... @@ -2079,6 +2079,7 @@ func ChanceDetail(header *protocol.RequestHeader, request *protocol.ChanceDetail
}
jsonUnmarshal(chance.SourceContent, &item.FormList)
item.FormList = clearEmptyForm(item.FormList)
chanceData.Videos = strings.ReplaceAll(chanceData.Videos, "https", "http")
if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil {
jsonUnmarshal(chanceData.Images, &item.Pictures)
jsonUnmarshal(chanceData.Speechs, &item.Speechs)
... ... @@ -2305,6 +2306,7 @@ func ChanceReviseDetail(header *protocol.RequestHeader, request *protocol.Chance
log.Error(err)
return
}
detail.Data = strings.ReplaceAll(detail.Data, "https", "http")
json.Unmarshal([]byte(detail.Data), &rsp.ChanceReviseData)
rsp.ChanceReviseData.Provider = provider
rsp.ChanceReviseData.CreateTime = detail.CreateAt.Unix() * 1000
... ...