推送二维码被扫信息 消息格式修改

This commit is contained in:
15683799673
2025-09-13 13:43:26 +08:00
parent 66ac68b632
commit 26e31014b5

View File

@@ -94,11 +94,7 @@ public class TbVisitorManagementController extends BaseController {
if (qrCodeInfo == null) {
return R.fail("二维码已过期");
}
JSONObject jsonObject = new JSONObject();
jsonObject.put("type", "qrcode");
jsonObject.put("date", qrcode);
remoteWebSocketMessageService.publishMessage(List.of(qrCodeInfo.getUserid()), WebSocketMsgType.MOBILE_QRCODE, jsonObject.toString());
remoteWebSocketMessageService.publishMessage(List.of(qrCodeInfo.getUserid()), WebSocketMsgType.MOBILE_QRCODE, qrcode);
return R.ok("二维码可用");
}