09-18-优化安装包文件上传,优化netty系统首次发送消息

This commit is contained in:
2025-09-18 15:05:01 +08:00
parent 5f3b24868f
commit 5c86398b75
2 changed files with 8 additions and 2 deletions

View File

@ -42,7 +42,9 @@ public class SysPackageController {
@Transactional
@GetMapping("/uploadNewVersion")
public R<SysPackage> uploadNewVersion(String version, String type, MultipartFile file) {
SysOssVo upload = sysOssService.upload(file);
SysOssVo path = sysOssService.upload(file);
String originalFileName = "apk/package/app-release.apk";
SysOssVo upload = sysOssService.upload(file, originalFileName);
if (upload == null){
return R.fail("上传失败");
}
@ -62,7 +64,7 @@ public class SysPackageController {
/**
* 删除
* 删除 现在指向的是同一个文件
*/
@Transactional
@GetMapping("/remove")

View File

@ -486,6 +486,7 @@ public class ChatServerHandler extends SimpleChannelInboundHandler<TextWebSocket
//发送方设置为99 表示系统消息
chatHistory.setSenderId(99L);
jsonObject.put("nickName","系统消息");
jsonObject.put("roomType",2);
}
//2:考勤消息
@ -507,6 +508,7 @@ public class ChatServerHandler extends SimpleChannelInboundHandler<TextWebSocket
//发送方设置为100 表示系统消息中的考勤消息
chatHistory.setSenderId(100L);
jsonObject.put("nickName","考勤消息");
jsonObject.put("roomType",3);
}
//安全消息
@ -528,6 +530,7 @@ public class ChatServerHandler extends SimpleChannelInboundHandler<TextWebSocket
//发送方设置为101 表示系统消息中的安全消息
chatHistory.setSenderId(101L);
jsonObject.put("nickName","安全消息");
jsonObject.put("roomType",4);
}
//质量消息
@ -549,6 +552,7 @@ public class ChatServerHandler extends SimpleChannelInboundHandler<TextWebSocket
//发送方设置为102 表示系统消息中的质量消息
chatHistory.setSenderId(102L);
jsonObject.put("nickName","质量消息");
jsonObject.put("roomType",5);
}
default -> {