|
|
@@ -215,7 +215,11 @@ public class WebSocket {
|
|
215
|
215
|
WxMpKefuMessage wechatMessage = WxMpKefuMessage.TEXT().toUser(kh).content(content).build();
|
|
216
|
216
|
webSocket.wxMpService.getKefuService().sendKefuMessage(wechatMessage);
|
|
217
|
217
|
} catch (WxErrorException e) {
|
|
218
|
|
- throw new RuntimeException(e);
|
|
|
218
|
+ log.error("发送微信消息失败",e);
|
|
|
219
|
+ mv1.setStatus("error");
|
|
|
220
|
+ mv1.setContent("发送微信消息失败");
|
|
|
221
|
+ session.getAsyncRemote().sendText(JSON.toJSONString(mv1));
|
|
|
222
|
+ return;
|
|
219
|
223
|
}
|
|
220
|
224
|
} else {
|
|
221
|
225
|
//其他客户
|