|
|
@@ -150,7 +150,11 @@ public class ForumPostReplyServiceImpl extends ServiceImpl<ForumPostReplyMapper,
|
|
|
ForumPostReply forumPostReply = BeanUtil.toBean(forumPostReplyAddParam, ForumPostReply.class);
|
|
|
// 设置用户
|
|
|
SaBaseLoginUser loginUser = StpLoginUserUtil.getLoginUser();
|
|
|
+ JSONObject userByIdWithoutException = sysUserApi.getUserByIdWithoutException(loginUser.getId());
|
|
|
forumPostReply.setUserId(loginUser.getId());
|
|
|
+ if (userByIdWithoutException != null) {
|
|
|
+ forumPostReply.setUserEduIdentity(userByIdWithoutException.getInt("eduIdentity"));
|
|
|
+ }
|
|
|
// 过滤敏感词
|
|
|
String replyContent = filterSensitivity(forumPostReplyAddParam.getReplyContent(), loginUser, forumPostReplyAddParam.getPostId());
|
|
|
forumPostReply.setReplyContent(replyContent);
|