作者 yangfu

机会/补充机会详情修改

... ... @@ -2079,10 +2079,11 @@ func ChanceDetail(header *protocol.RequestHeader, request *protocol.ChanceDetail
}
jsonUnmarshal(chance.SourceContent, &item.FormList)
item.FormList = clearEmptyForm(item.FormList)
if chanceData != nil && len(chanceData.Videos) > 0 {
if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil {
if len(chanceData.Videos) > 0 {
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)
jsonUnmarshal(chanceData.Videos, &item.Videos)
... ...