|  | @@ -125,29 +125,18 @@ public class KfAppletMsgServiceImpl implements IKfAppletMsgService {
 | 
	
		
			
				|  |  |          //构造房间消息
 | 
	
		
			
				|  |  |          KfWebSocketMsgDTO.MsgContentBean msgContent = this.getMsgContent(kfAppletMsgDTO);
 | 
	
		
			
				|  |  |          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());
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        log.error("11111111111111-> ");
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          //客服订单处理
 | 
	
		
			
				|  |  |          if (Strings.isNotBlank(orderId) && this.orderHandle(orderId, gameApplet.getGameId(), kfAppletMsgDTO, kfRoom, kfRoomMsg)) {
 | 
	
		
			
				|  |  |              return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        log.error("22222222222222-> ");
 | 
	
		
			
				|  |  |          //客服休息时间, 发送自动回复
 | 
	
		
			
				|  |  |          this.systemReplyHandle(gameApplet.getGameId(), kfAppletMsgDTO.getFromUserName(), kfRoom);
 | 
	
		
			
				|  |  | -        log.error("33333333333333-> ");
 | 
	
		
			
				|  |  |          //消息报警监测
 | 
	
		
			
				|  |  |          this.monitorWordHandle(gameApplet, kfAppletMsgDTO);
 | 
	
		
			
				|  |  | -        log.error("44444444444444-> ");
 | 
	
		
			
				|  |  |          //保存房间消息
 | 
	
		
			
				|  |  |          kfRoomMsgService.save(kfRoomMsg);
 | 
	
		
			
				|  |  | -        log.error("55555555555555-> ");
 | 
	
		
			
				|  |  |          //玩家状态更新为待接入状态
 | 
	
		
			
				|  |  |          if (kfRoom == null) {
 | 
	
		
			
				|  |  |              kfSessionUserService.update(new LambdaUpdateWrapper<KfSessionUser>()
 | 
	
	
		
			
				|  | @@ -199,7 +188,7 @@ public class KfAppletMsgServiceImpl implements IKfAppletMsgService {
 | 
	
		
			
				|  |  |          //保存消息
 | 
	
		
			
				|  |  |          Map<String, Object> kfRoomMsgMap = new HashMap<>(1);
 | 
	
		
			
				|  |  |          kfRoomMsgMap.put("text", kfSystemReply.getSysReply());
 | 
	
		
			
				|  |  | -        kfRoomMsgService.save(this.transform(openId, gameId, kfRoom, JsonUtil.toString(kfRoomMsgMap)));
 | 
	
		
			
				|  |  | +        kfRoomMsgService.save(this.transform(openId, gameId, kfRoom, KfRoomMsgTypeEnum.KF_MSG_TYPE_TEXT, JsonUtil.toString(kfRoomMsgMap)));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private boolean orderHandle(String orderId, Long gameId, KfAppletMsgDTO kfAppletMsgDTO, KfRoom kfRoom, KfRoomMsg kfRoomMsg) {
 | 
	
	
		
			
				|  | @@ -413,15 +402,15 @@ public class KfAppletMsgServiceImpl implements IKfAppletMsgService {
 | 
	
		
			
				|  |  |          kfWxApiService.sendCustomMessageApi(gameId, msgParamMap);
 | 
	
		
			
				|  |  |          //返回发送的消息内容
 | 
	
		
			
				|  |  |          log.error("客服支付, 发送支付信息 : {}", JsonUtil.toString(msgParamMap));
 | 
	
		
			
				|  |  | -        kfRoomMsgService.save(this.transform(openId, gameId, kfRoom, JsonUtil.toString(msgParamMap)));
 | 
	
		
			
				|  |  | +        kfRoomMsgService.save(this.transform(openId, gameId, kfRoom, KfRoomMsgTypeEnum.KF_MSG_TYPE_LINK, JsonUtil.toString(msgParamMap)));
 | 
	
		
			
				|  |  |          //删除待支付订单标记
 | 
	
		
			
				|  |  |          redisUtil.deleteCache(RedisKeyConstant.GAME_CUSTOM_PAY_SIGN + openId);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    private KfRoomMsg transform(String openId, Long gameId, KfRoom kfRoom, String msgContent) {
 | 
	
		
			
				|  |  | +    private KfRoomMsg transform(String openId, Long gameId, KfRoom kfRoom, KfRoomMsgTypeEnum kfRoomMsgTypeEnum, String msgContent) {
 | 
	
		
			
				|  |  |          return KfRoomMsg.builder()
 | 
	
		
			
				|  |  |                  .msgId(UUID.randomUUID().toString().replace("-", ""))
 | 
	
		
			
				|  |  | -                .msgType(KfRoomMsgTypeEnum.KF_MSG_TYPE_LINK.getValue())
 | 
	
		
			
				|  |  | +                .msgType(kfRoomMsgTypeEnum.getValue())
 | 
	
		
			
				|  |  |                  .gameId(gameId)
 | 
	
		
			
				|  |  |                  .openId(openId)
 | 
	
		
			
				|  |  |                  .userId(kfRoom == null ? null : kfRoom.getUserId())
 |