Skip to content

Commit

Permalink
页面与程序文件类型不一致错误修复 感谢交流群2群 今早好大雾
Browse files Browse the repository at this point in the history
  • Loading branch information
kerneler authored and kerneler committed Jan 9, 2020
1 parent ad7ece4 commit 1dd65b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -54,7 +54,7 @@ public class CmsFileUtils {
/**
*
*/
public static final List<String> MUSIC_FILE_SUFFIXS = Arrays.asList(new String[] { ".mp3", ".wav", ".mid" });
public static final List<String> AUDIO_FILE_SUFFIXS = Arrays.asList(new String[] { ".mp3", ".wav", ".mid" });
/**
*
*/
Expand All @@ -66,7 +66,7 @@ public class CmsFileUtils {
/**
*
*/
public static final String FILE_TYPE_MUSIC = "music";
public static final String FILE_TYPE_AUDIO = "audio";
/**
*
*/
Expand Down Expand Up @@ -296,8 +296,8 @@ public static String getFileType(String suffix) {
return FILE_TYPE_IMAGE;
} else if (VIDEO_FILE_SUFFIXS.contains(suffix)) {
return FILE_TYPE_VIDEO;
} else if (MUSIC_FILE_SUFFIXS.contains(suffix)) {
return FILE_TYPE_MUSIC;
} else if (AUDIO_FILE_SUFFIXS.contains(suffix)) {
return FILE_TYPE_AUDIO;
} else {
return FILE_TYPE_OTHER;
}
Expand Down
Expand Up @@ -28,7 +28,7 @@

/**
*
* SprintBootApplication
* SpringBootApplication
*
*/
@Configuration
Expand Down

0 comments on commit 1dd65b4

Please sign in to comment.