|
|
@ -81,6 +81,7 @@ public class ChatMessageServiceImpl implements ChatMessageService {
|
|
|
|
if (!StringUtils.isEmpty(text)) {
|
|
|
|
if (!StringUtils.isEmpty(text)) {
|
|
|
|
chatCommentsDto.setText(text);
|
|
|
|
chatCommentsDto.setText(text);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
log.info("参数错误");
|
|
|
|
throw new ServiceException(ErrorCode.PARAMS_ERROR.getCode(), "参数错误");
|
|
|
|
throw new ServiceException(ErrorCode.PARAMS_ERROR.getCode(), "参数错误");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -96,7 +97,8 @@ public class ChatMessageServiceImpl implements ChatMessageService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return sseEmitter;
|
|
|
|
return sseEmitter;
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
throw new ServiceException(ErrorCode.OPERATION_ERROR.getCode(), e.getMessage());
|
|
|
|
log.info(e.getStackTrace().toString());
|
|
|
|
|
|
|
|
throw new ServiceException(ErrorCode.OPERATION_ERROR.getCode(), e.getStackTrace().toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|