feat: ipa name decode

pull/687/head
Xhofe 2022-03-05 15:13:19 +08:00
parent 4ae81b5a79
commit b44243c021
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@ func Plist(c *gin.Context) {
ipaIndex := strings.Index(name, ".ipa")
if ipaIndex != -1 {
name = name[:ipaIndex]
decodeName, err := url.PathUnescape(name)
if err == nil {
name = decodeName
}
}
name = strings.ReplaceAll(name, "<", "[")
name = strings.ReplaceAll(name, ">", "]")