Fix img加载
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user