作者 yangfu

机会/补充机会详情修改

@@ -2079,7 +2079,9 @@ func ChanceDetail(header *protocol.RequestHeader, request *protocol.ChanceDetail @@ -2079,7 +2079,9 @@ func ChanceDetail(header *protocol.RequestHeader, request *protocol.ChanceDetail
2079 } 2079 }
2080 jsonUnmarshal(chance.SourceContent, &item.FormList) 2080 jsonUnmarshal(chance.SourceContent, &item.FormList)
2081 item.FormList = clearEmptyForm(item.FormList) 2081 item.FormList = clearEmptyForm(item.FormList)
  2082 + if len(chanceData.Videos) > 0 {
2082 chanceData.Videos = strings.ReplaceAll(chanceData.Videos, "https", "http") 2083 chanceData.Videos = strings.ReplaceAll(chanceData.Videos, "https", "http")
  2084 + }
2083 if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil { 2085 if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil {
2084 jsonUnmarshal(chanceData.Images, &item.Pictures) 2086 jsonUnmarshal(chanceData.Images, &item.Pictures)
2085 jsonUnmarshal(chanceData.Speechs, &item.Speechs) 2087 jsonUnmarshal(chanceData.Speechs, &item.Speechs)
@@ -2306,7 +2308,9 @@ func ChanceReviseDetail(header *protocol.RequestHeader, request *protocol.Chance @@ -2306,7 +2308,9 @@ func ChanceReviseDetail(header *protocol.RequestHeader, request *protocol.Chance
2306 log.Error(err) 2308 log.Error(err)
2307 return 2309 return
2308 } 2310 }
  2311 + if len(detail.Data) > 0 {
2309 detail.Data = strings.ReplaceAll(detail.Data, "https", "http") 2312 detail.Data = strings.ReplaceAll(detail.Data, "https", "http")
  2313 + }
2310 json.Unmarshal([]byte(detail.Data), &rsp.ChanceReviseData) 2314 json.Unmarshal([]byte(detail.Data), &rsp.ChanceReviseData)
2311 rsp.ChanceReviseData.Provider = provider 2315 rsp.ChanceReviseData.Provider = provider
2312 rsp.ChanceReviseData.CreateTime = detail.CreateAt.Unix() * 1000 2316 rsp.ChanceReviseData.CreateTime = detail.CreateAt.Unix() * 1000