Fix img加载

This commit is contained in:
JiXieShi
2024-05-07 21:46:06 +08:00
parent 47f42fe2b0
commit 0f49d5f017
3 changed files with 20 additions and 9 deletions

View File

@@ -200,13 +200,14 @@ func GetVideoData(w http.ResponseWriter, r *http.Request) {
http.Error(w, "无法解析视频数据", http.StatusInternalServerError)
return
}
imageurl := "https://images.weserv.nl/?url="
info := &VideoInfo{
Owner: video.Data.Owner.Name,
Face: video.Data.Owner.Face,
Face: imageurl + video.Data.Owner.Face,
Title: video.Data.Title,
Desc: video.Data.Desc,
Duration: secondsToTimeString(video.Data.Duration),
Pic: video.Data.Pic,
Pic: imageurl + video.Data.Pic,
Coin: video.Data.Stat.Coin,
Danmaku: video.Data.Stat.Danmaku,
Favorite: video.Data.Stat.Favorite,