|
@@ -144,6 +144,15 @@ public class KfAppletMsgServiceImpl implements IKfAppletMsgService {
|
|
|
//构造房间消息
|
|
|
KfWebSocketMsgDTO.MsgContentBean msgContent = this.getMsgContent(kfAppletMsgDTO);
|
|
|
KfRoomMsg kfRoomMsg = this.transform(kfAppletMsgDTO, gameApplet, kfRoom, postData, msgContent);
|
|
|
+ //虚拟游戏小程序, 单独逻辑
|
|
|
+ if (Objects.equals(gameApplet.getType(), 3)) {
|
|
|
+ //小程序自动回复
|
|
|
+ this.appletReplyHandle(gameApplet.getGameId(), kfAppletMsgDTO.getFromUserName(), kfRoom, gameApplet.getAppId());
|
|
|
+ //保存房间消息
|
|
|
+ kfRoomMsgService.save(kfRoomMsg);
|
|
|
+ //直接结束
|
|
|
+ return;
|
|
|
+ }
|
|
|
//判断是否请求支付链接
|
|
|
String orderId = redisUtil.getCache(RedisKeyConstant.GAME_CUSTOM_PAY_SIGN + kfAppletMsgDTO.getFromUserName());
|
|
|
//客服订单处理
|
|
@@ -158,8 +167,6 @@ public class KfAppletMsgServiceImpl implements IKfAppletMsgService {
|
|
|
}
|
|
|
//客服休息时间, 发送自动回复
|
|
|
this.systemReplyHandle(gameApplet.getGameId(), kfAppletMsgDTO.getFromUserName(), kfRoom);
|
|
|
- //小程序自动回复
|
|
|
- this.appletReplyHandle(gameApplet.getGameId(), kfAppletMsgDTO.getFromUserName(), kfRoom, gameApplet.getAppId());
|
|
|
//消息报警监测
|
|
|
this.monitorWordHandle(gameApplet, kfAppletMsgDTO);
|
|
|
//保存房间消息
|
|
@@ -170,10 +177,8 @@ public class KfAppletMsgServiceImpl implements IKfAppletMsgService {
|
|
|
.set(KfSessionUser::getIsWait, Boolean.TRUE)
|
|
|
.set(KfSessionUser::getWaitStartTime, LocalDateTime.now())
|
|
|
.set(KfSessionUser::getUpdateTime, LocalDateTime.now())
|
|
|
- .isNull(KfSessionUser::getSessionFrom)
|
|
|
.eq(KfSessionUser::getOpenId, kfAppletMsgDTO.getFromUserName())
|
|
|
- .eq(KfSessionUser::getGameId, gameApplet.getGameId())
|
|
|
- );
|
|
|
+ .eq(KfSessionUser::getGameId, gameApplet.getGameId()));
|
|
|
}
|
|
|
//消息转发到redis频道
|
|
|
this.pushMessage(this.transform(kfRoom, gameApplet.getGameId(), kfAppletMsgDTO.getFromUserName(), kfRoomMsg, msgContent));
|