yshop1.8发布,新增素材管理等,详细查看readme或登录网站后台查看

This commit is contained in:
hupeng
2020-01-10 22:58:22 +08:00
parent 5c88f8281f
commit 6c663012a4
33 changed files with 851 additions and 52 deletions

View File

@ -5,7 +5,7 @@
<parent>
<artifactId>yshop</artifactId>
<groupId>co.yixiang</groupId>
<version>1.7</version>
<version>1.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -195,15 +195,15 @@ public class FileUtil extends cn.hutool.core.io.FileUtil {
String video = "avi mpg mpe mpeg asf wmv mov qt rm mp4 flv m4v webm ogv ogg";
String image = "bmp dib pcp dif wmf gif jpg tif eps psd cdr iff tga pcd mpt png jpeg";
if(image.contains(type)){
return "图片";
return "pic";
} else if(documents.contains(type)){
return "文档";
return "txt";
} else if(music.contains(type)){
return "音乐";
return "music";
} else if(video.contains(type)){
return "视频";
return "vedio";
} else {
return "其他";
return "other";
}
}