|
@@ -172,7 +172,7 @@ public class KfAppletMsgServiceImpl implements IKfAppletMsgService {
|
|
|
return;
|
|
|
}
|
|
|
//客服休息时间, 发送自动回复
|
|
|
- this.systemReplyHandle(gameApplet.getGameId(), kfAppletMsgDTO.getFromUserName(), kfRoom);
|
|
|
+ this.systemReplyHandleNew(gameApplet.getGameId(), kfAppletMsgDTO.getFromUserName(), kfRoom);
|
|
|
//消息报警监测
|
|
|
this.monitorWordHandle(gameApplet, kfAppletMsgDTO);
|
|
|
//保存消息, 玩家转入接待状态
|
|
@@ -286,6 +286,26 @@ public class KfAppletMsgServiceImpl implements IKfAppletMsgService {
|
|
|
gameAuthRoleService.dingTalkCustomer(gameApplet.getGameId(), gameApplet.getAppName(), textContent);
|
|
|
}
|
|
|
|
|
|
+ private void systemReplyHandleNew(Long gameId, String openId, KfRoom kfRoom) {
|
|
|
+ //获取自动回复配置
|
|
|
+ KfSystemReply kfSystemReply = kfSystemReplyService.getById(gameId);
|
|
|
+ if (kfSystemReply == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //未开启自动回复
|
|
|
+ if (Objects.equals(kfSystemReply.getRechargeReplySwitch(), Boolean.FALSE)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //发送文字消息
|
|
|
+ if (Strings.isNotBlank(kfSystemReply.getRechargeReplyContent())) {
|
|
|
+ this.sysMsgSend(gameId, openId, kfSystemReply.getRechargeReplyContent(), kfRoom);
|
|
|
+ }
|
|
|
+ //发送图片消息
|
|
|
+ if (Strings.isNotBlank(kfSystemReply.getRechargeReplyPicture())) {
|
|
|
+ this.sysImgMsgSend(gameId, openId, kfSystemReply.getRechargeReplyPicture(), kfRoom);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void systemReplyHandle(Long gameId, String openId, KfRoom kfRoom) {
|
|
|
//获取自动回复配置
|
|
|
KfSystemReply kfSystemReply = kfSystemReplyService.getById(gameId);
|