Commit 423c6429 authored by yanzg's avatar yanzg

修改实体位置

parent ef9df30c
......@@ -66,6 +66,7 @@ public class FileHelper {
* @return
*/
public static int getMediaTypeByMime(String mimeType) {
mimeType = StringHelper.getFirst(mimeType, StringHelper.EMPTY);
if (mimeType.startsWith("video/")) {
return FILE_TYPE_VIDEO;
} else if (mimeType.startsWith("audio/")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment