修改测试反馈

This commit is contained in:
wulin 2023-11-15 19:47:20 +08:00
parent 0034eb6767
commit 49f4538e5b
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public class TimeActionCommand extends ActionCommand implements IActionCommand{
resp.setText(action.getAsk().replaceAll(action.getAction(), getDayOfWeek(action.getTime().getDetailTime().getLocalDateTime().format(df))));
resp.setTime(dateTimeResp);
return baseWebSocketService.send .Message(
return baseWebSocketService.sendMessage(
action,
baseSession,
resp);

View File

@ -157,7 +157,7 @@ public class BoxWebSocketHandler implements WebSocketHandler {
return baseWebSocketService.closeSendMsg(boxSession, "设备信息不全", AskTypeEnum.TIME.getCode());
}
log.info("收到SN:{},消息:{}", boxTalkMessage.getSn(), boxTalkMessage.getMessage());
if(boxTalkMessage.getType().equals(YesNo.NO.getCode())){
if(YesNo.NO.getCode().equals(boxTalkMessage.getType())){
if(StringUtils.isEmpty(boxTalkMessage.getMessage())){
log.info("收到空字符串,不处理,请求编号+1");
boxSession.setRequestId(boxSession.getRequestId() + 1);