作者 yangfu

机会/补充机会详情修改

... ... @@ -2079,7 +2079,9 @@ 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 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)
... ... @@ -2306,7 +2308,9 @@ func ChanceReviseDetail(header *protocol.RequestHeader, request *protocol.Chance
log.Error(err)
return
}
detail.Data = strings.ReplaceAll(detail.Data, "https", "http")
if len(detail.Data) > 0 {
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
... ...