|
|
@ -217,7 +217,7 @@ func GetPodcastItemImageById(c *gin.Context) {
|
|
|
|
if _, err = os.Stat(podcast.LocalImage); os.IsNotExist(err) {
|
|
|
|
if _, err = os.Stat(podcast.LocalImage); os.IsNotExist(err) {
|
|
|
|
c.Redirect(301, podcast.Image)
|
|
|
|
c.Redirect(301, podcast.Image)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
c.Redirect(302, fmt.Sprintf("/%s", podcast.LocalImage))
|
|
|
|
c.Redirect(302, "/"+podcast.LocalImage)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|