update 新增mp3,aif,aiff,wav,wma 文件上传功能
This commit is contained in:
parent
3e2178e161
commit
9ae9a88a46
|
@ -35,6 +35,8 @@ public class MimeTypeUtils
|
|||
"rar", "zip", "gz", "bz2",
|
||||
// 视频格式
|
||||
"mp4", "avi", "rmvb",
|
||||
//音频格式
|
||||
"mp3","aif","aiff","wav","wma",
|
||||
// pdf
|
||||
"pdf" };
|
||||
|
||||
|
|
|
@ -70,8 +70,9 @@ public class WebSocketBrokerConfig implements WebSocketMessageBrokerConfigurer {
|
|||
.setHeartbeatValue(new long[] {20000, 20000})
|
||||
.setTaskScheduler(new DefaultManagedTaskScheduler());
|
||||
|
||||
//发送消息前缀
|
||||
config.setApplicationDestinationPrefixes(Destination.SEND_PREFIX);
|
||||
//服务端通知客户端的前缀,可以不设置,默认为user
|
||||
//客户端订阅前缀,可以不设置,默认为user
|
||||
config.setUserDestinationPrefix(Destination.USER_PREFIX);
|
||||
}
|
||||
|
||||
|
|
|
@ -80,8 +80,7 @@ public class TicketServiceImpl implements TicketService {
|
|||
R<SysFile> upload = fileService.uploadFile(f);
|
||||
|
||||
if (StringUtils.isNull(upload) || StringUtils.isNull(upload.getData())) {
|
||||
System.out.println("gg");
|
||||
System.out.println(upload.getMsg());
|
||||
System.out.println("文件上传失败,错误消息"+upload.getMsg());
|
||||
return AjaxResult.error("文件服务异常,文件上传失败");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue