fix(接口定义)revert commit 9f49f57a
参数优化
This commit is contained in:
parent
085777b58d
commit
b44282d2a3
|
@ -158,12 +158,6 @@ public class FileService {
|
|||
private FileType getFileType(String filename) {
|
||||
int s = filename.lastIndexOf(".") + 1;
|
||||
String type = filename.substring(s);
|
||||
FileType type1 =FileType.valueOf(type.toUpperCase());
|
||||
for (FileType type2:FileType.values()) {
|
||||
if (!type1.equals(type2)){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return FileType.valueOf(type.toUpperCase());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue