|
@@ -125,18 +125,29 @@ public class KfAppletMsgServiceImpl implements IKfAppletMsgService {
|
|
//构造房间消息
|
|
//构造房间消息
|
|
KfWebSocketMsgDTO.MsgContentBean msgContent = this.getMsgContent(kfAppletMsgDTO);
|
|
KfWebSocketMsgDTO.MsgContentBean msgContent = this.getMsgContent(kfAppletMsgDTO);
|
|
KfRoomMsg kfRoomMsg = this.transform(kfAppletMsgDTO, gameApplet, kfRoom, postData, msgContent);
|
|
KfRoomMsg kfRoomMsg = this.transform(kfAppletMsgDTO, gameApplet, kfRoom, postData, msgContent);
|
|
|
|
+
|
|
|
|
+ log.error("构造消息成功, kfRoomMsg : {}", JsonUtil.toString(kfRoomMsg));
|
|
|
|
+
|
|
//判断是否请求支付链接
|
|
//判断是否请求支付链接
|
|
String orderId = redisUtil.getCache(RedisKeyConstant.GAME_CUSTOM_PAY_SIGN + kfAppletMsgDTO.getFromUserName());
|
|
String orderId = redisUtil.getCache(RedisKeyConstant.GAME_CUSTOM_PAY_SIGN + kfAppletMsgDTO.getFromUserName());
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ log.error("11111111111111-> ");
|
|
|
|
+
|
|
//客服订单处理
|
|
//客服订单处理
|
|
if (Strings.isNotBlank(orderId) && this.orderHandle(orderId, gameApplet.getGameId(), kfAppletMsgDTO, kfRoom, kfRoomMsg)) {
|
|
if (Strings.isNotBlank(orderId) && this.orderHandle(orderId, gameApplet.getGameId(), kfAppletMsgDTO, kfRoom, kfRoomMsg)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ log.error("22222222222222-> ");
|
|
//客服休息时间, 发送自动回复
|
|
//客服休息时间, 发送自动回复
|
|
this.systemReplyHandle(gameApplet.getGameId(), kfAppletMsgDTO.getFromUserName(), kfRoom);
|
|
this.systemReplyHandle(gameApplet.getGameId(), kfAppletMsgDTO.getFromUserName(), kfRoom);
|
|
|
|
+ log.error("33333333333333-> ");
|
|
//消息报警监测
|
|
//消息报警监测
|
|
this.monitorWordHandle(gameApplet, kfAppletMsgDTO);
|
|
this.monitorWordHandle(gameApplet, kfAppletMsgDTO);
|
|
|
|
+ log.error("44444444444444-> ");
|
|
//保存房间消息
|
|
//保存房间消息
|
|
kfRoomMsgService.save(kfRoomMsg);
|
|
kfRoomMsgService.save(kfRoomMsg);
|
|
|
|
+ log.error("55555555555555-> ");
|
|
//玩家状态更新为待接入状态
|
|
//玩家状态更新为待接入状态
|
|
if (kfRoom == null) {
|
|
if (kfRoom == null) {
|
|
kfSessionUserService.update(new LambdaUpdateWrapper<KfSessionUser>()
|
|
kfSessionUserService.update(new LambdaUpdateWrapper<KfSessionUser>()
|