We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码如下: if (configInfo.getDataId().contains(SPOT)) { String extName = configInfo.getDataId().substring(configInfo.getDataId().lastIndexOf(SPOT) + 1).toLowerCase(); try { type = FileTypeEnum.valueOf(extName).getFileType(); } catch (Exception ex) { type = FileTypeEnum.TEXT.getFileType(); } }
至少应该toUpperCase一下吧,要不然type全部text类型了
type = FileTypeEnum.valueOf(extName.toUpperCase()).getFileType();
上传zip配置包
小bug希望大佬们修复一下
The text was updated successfully, but these errors were encountered:
欢迎你贡献修复!
Sorry, something went wrong.
嗯嗯,好的,第一次加入开源项目,很荣幸,我先学习下怎么做。
a219dbe
No branches or pull requests
Issue Description
代码如下:
if (configInfo.getDataId().contains(SPOT)) {
String extName = configInfo.getDataId().substring(configInfo.getDataId().lastIndexOf(SPOT) + 1).toLowerCase();
try {
type = FileTypeEnum.valueOf(extName).getFileType();
} catch (Exception ex) {
type = FileTypeEnum.TEXT.getFileType();
}
}
Describe what happened (or what feature you want)
Describe what you expected to happen
至少应该toUpperCase一下吧,要不然type全部text类型了
type = FileTypeEnum.valueOf(extName.toUpperCase()).getFileType();
How to reproduce it (as minimally and precisely as possible)
上传zip配置包
Tell us your environment
Anything else we need to know?
小bug希望大佬们修复一下
The text was updated successfully, but these errors were encountered: