update mqtt 服务器

This commit is contained in:
Lemon
2023-12-21 10:37:21 +08:00
parent 5fbce62752
commit 36c2832f63
6 changed files with 43 additions and 46 deletions

View File

@@ -65,7 +65,7 @@ public class CameraController extends BaseController {
@PostMapping("/sendMsg2Topic")
public void sendMsg2Topic(@RequestBody SendMsg2TopicDTO dto) {
try {
cameraBusinessService.sendGroundLockCommand(dto.getSn(), dto.getMsgType(), dto.getMsgPrefix(), dto.getTopic());
cameraBusinessService.sendGroundLockCommand(dto.getSn(), dto.getMsgType(), dto.getMsgPrefix(), dto.getTopic(), dto.getMsgData().toJSONString());
} catch (Exception e) {
logger.error("发送消息 error, ", e);
}