🚧 change base64 characters

pull/661/head
Xhofe 2022-02-17 09:14:21 +08:00
parent 5be976169f
commit f11e22deaf
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ func Favicon(c *gin.Context) {
func Plist(c *gin.Context) {
data := c.Param("data")
data = strings.ReplaceAll(data, "_", "/")
data = strings.ReplaceAll(data, "-", "=")
bytes, err := base64.StdEncoding.DecodeString(data)
if err != nil {
common.ErrorResp(c, err, 500)