提交 6ebdb7e6 编写于 作者: S sanluan

Merge remote-tracking branch 'origin/master' into develop

......@@ -349,6 +349,9 @@ public class CmsFileUtils {
}
public static String getFileType(String suffix) {
if (null != suffix && !suffix.startsWith(CommonConstants.DOT)) {
suffix = CommonConstants.DOT + suffix;
}
if (IMAGE_FILE_SUFFIXS.contains(suffix)) {
return FILE_TYPE_IMAGE;
} else if (VIDEO_FILE_SUFFIXS.contains(suffix)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册