mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-06 13:48:00 +08:00
This commit is contained in:
parent
c1c862dda7
commit
1bf0b331c9
@ -177,6 +177,12 @@ public class FileTypeUtil {
|
|||||||
} else if ("ofd".equalsIgnoreCase(extName)) {
|
} else if ("ofd".equalsIgnoreCase(extName)) {
|
||||||
typeName = "ofd";
|
typeName = "ofd";
|
||||||
}
|
}
|
||||||
|
} else if ("jar".equals(typeName)) {
|
||||||
|
// wps编辑过的.xlsx文件与.jar的开头相同,通过扩展名判断
|
||||||
|
final String extName = FileUtil.extName(filename);
|
||||||
|
if ("xlsx".equalsIgnoreCase(extName)) {
|
||||||
|
typeName = "xlsx";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return typeName;
|
return typeName;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user