This commit is contained in:
kunfei committed 2023-03-15 19:01:59 +08:00
1 parent 47319ef4ba
commit 744406d050
1 file changed
+1 -1
@@ -52,7 +52,7 @@ object UrlUtil {
)
} else {
// 方法二 截取
var newUrl: String = url.path ?: return null
var newUrl: String = conn.url.path ?: return null
newUrl = URLDecoder.decode(newUrl, "UTF-8")
fileName = newUrl.substringAfterLast("/")
}