正在显示
1 个修改的文件
包含
4 行增加
和
3 行删除
@@ -2079,10 +2079,11 @@ func ChanceDetail(header *protocol.RequestHeader, request *protocol.ChanceDetail | @@ -2079,10 +2079,11 @@ 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 chanceData != nil && len(chanceData.Videos) > 0 { | ||
2083 | - chanceData.Videos = strings.ReplaceAll(chanceData.Videos, "https", "http") | ||
2084 | - } | 2082 | + |
2085 | if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil { | 2083 | if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil { |
2084 | + if len(chanceData.Videos) > 0 { | ||
2085 | + chanceData.Videos = strings.ReplaceAll(chanceData.Videos, "https", "http") | ||
2086 | + } | ||
2086 | jsonUnmarshal(chanceData.Images, &item.Pictures) | 2087 | jsonUnmarshal(chanceData.Images, &item.Pictures) |
2087 | jsonUnmarshal(chanceData.Speechs, &item.Speechs) | 2088 | jsonUnmarshal(chanceData.Speechs, &item.Speechs) |
2088 | jsonUnmarshal(chanceData.Videos, &item.Videos) | 2089 | jsonUnmarshal(chanceData.Videos, &item.Videos) |
-
请 注册 或 登录 后发表评论