{"action":"created","issue":{"url":"https://api.github.com/repos/easilycoder/HybridCache/issues/1","repository_url":"https://api.github.com/repos/easilycoder/HybridCache","labels_url":"https://api.github.com/repos/easilycoder/HybridCache/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/easilycoder/HybridCache/issues/1/comments","events_url":"https://api.github.com/repos/easilycoder/HybridCache/issues/1/events","html_url":"https://github.com/easilycoder/HybridCache/issues/1","id":340608756,"node_id":"MDU6SXNzdWUzNDA2MDg3NTY=","number":1,"title":"关于 ImageInterceptor.isIntercept 的一些问题","user":{"login":"libern","id":1830640,"node_id":"MDQ6VXNlcjE4MzA2NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1830640?v=4","gravatar_id":"","url":"https://api.github.com/users/libern","html_url":"https://github.com/libern","followers_url":"https://api.github.com/users/libern/followers","following_url":"https://api.github.com/users/libern/following{/other_user}","gists_url":"https://api.github.com/users/libern/gists{/gist_id}","starred_url":"https://api.github.com/users/libern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libern/subscriptions","organizations_url":"https://api.github.com/users/libern/orgs","repos_url":"https://api.github.com/users/libern/repos","events_url":"https://api.github.com/users/libern/events{/privacy}","received_events_url":"https://api.github.com/users/libern/received_events","type":"User","site_admin":false},"labels":[{"id":889648114,"node_id":"MDU6TGFiZWw4ODk2NDgxMTQ=","url":"https://api.github.com/repos/easilycoder/HybridCache/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-12T12:03:55Z","updated_at":"2018-07-17T14:53:06Z","closed_at":null,"author_association":"NONE","body":"首先，感谢提供如此牛逼的东西！\r\n谢谢年轻的大佬，知道你是刚毕业的！\r\n\r\n```\r\nMimeTypeMap.getFileExtensionFromUrl(url)\r\n```\r\n在正常使用中，上述方法貌似不能正确解析。\r\n\r\n![image](https://user-images.githubusercontent.com/1830640/42632008-747e5e6c-860e-11e8-905e-b141dc0cf395.png)\r\n\r\n如图，导致缓存失败！\r\n"},"comment":{"url":"https://api.github.com/repos/easilycoder/HybridCache/issues/comments/405610945","html_url":"https://github.com/easilycoder/HybridCache/issues/1#issuecomment-405610945","issue_url":"https://api.github.com/repos/easilycoder/HybridCache/issues/1","id":405610945,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTYxMDk0NQ==","user":{"login":"libern","id":1830640,"node_id":"MDQ6VXNlcjE4MzA2NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1830640?v=4","gravatar_id":"","url":"https://api.github.com/users/libern","html_url":"https://github.com/libern","followers_url":"https://api.github.com/users/libern/followers","following_url":"https://api.github.com/users/libern/following{/other_user}","gists_url":"https://api.github.com/users/libern/gists{/gist_id}","starred_url":"https://api.github.com/users/libern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libern/subscriptions","organizations_url":"https://api.github.com/users/libern/orgs","repos_url":"https://api.github.com/users/libern/repos","events_url":"https://api.github.com/users/libern/events{/privacy}","received_events_url":"https://api.github.com/users/libern/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T14:53:06Z","updated_at":"2018-07-17T14:53:06Z","author_association":"NONE","body":"送给你吧，这个测试过了。如果不介意的话，可以加我微信，不打不相识，微信名是就是我这个名字。\r\n```\r\npublic static String getFileExtensionFromUrl(String url) {\r\n        URL extUrl = null;\r\n        try {\r\n            URI uri = new URI(url);\r\n            extUrl = uri.toURL();\r\n        } catch (URISyntaxException e) {\r\n//            e.printStackTrace();\r\n        } catch (MalformedURLException e) {\r\n//            e.printStackTrace();\r\n        }\r\n\r\n        if (extUrl == null) {\r\n            return \"\";\r\n        }\r\n\r\n        String extension = \"\";\r\n        String path = extUrl.getPath();\r\n\r\n        String[] pathContents = path.split(\"[\\\\\\\\/]\");\r\n        if (pathContents != null) {\r\n            int pathContentsLength = pathContents.length;\r\n            //lastPart: s659629384_752969_4472.jpg\r\n            String lastPart = pathContents[pathContentsLength - 1];\r\n            String[] lastPartContents = lastPart.split(\"\\\\.\");\r\n            if (lastPartContents != null && lastPartContents.length > 1) {\r\n                int lastPartContentLength = lastPartContents.length;\r\n                extension = lastPartContents[lastPartContentLength - 1];\r\n            }\r\n        }\r\n        return extension;\r\n    }\r\n```"}}
{"actor":{"display_login":"libern"}}