Merge branch 'feature/community-center' into preview
commit
200e5c1d32
|
@ -74,7 +74,7 @@ token:
|
||||||
# 令牌密钥
|
# 令牌密钥
|
||||||
secret: abcdefghijklmnopqrstuvwxyz
|
secret: abcdefghijklmnopqrstuvwxyz
|
||||||
# 令牌有效期(默认30分钟)
|
# 令牌有效期(默认30分钟)
|
||||||
expireTime: 1440
|
expireTime: 43200
|
||||||
|
|
||||||
# MyBatis Plus配置
|
# MyBatis Plus配置
|
||||||
mybatis-plus:
|
mybatis-plus:
|
||||||
|
|
|
@ -113,6 +113,11 @@ public class QuestionCommentServiceImpl extends ServiceImpl<QuestionCommentMappe
|
||||||
return AjaxResult.error("该评论已被采纳");
|
return AjaxResult.error("该评论已被采纳");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Long questionUserId = question.getQuestionUserId();
|
||||||
|
if (questionComment.getUserId().equals(questionUserId)) {
|
||||||
|
return AjaxResult.error("您不能采纳自己的评论");
|
||||||
|
}
|
||||||
|
|
||||||
questionComment.setIsAccept(1);
|
questionComment.setIsAccept(1);
|
||||||
baseMapper.updateById(questionComment);
|
baseMapper.updateById(questionComment);
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
question_url,
|
question_url,
|
||||||
is_anonymous,
|
is_anonymous,
|
||||||
amount,
|
amount,
|
||||||
|
status,
|
||||||
type
|
type
|
||||||
from cc_question
|
from cc_question
|
||||||
where del_flag = '0'
|
where del_flag = '0'
|
||||||
|
@ -30,6 +31,7 @@
|
||||||
question_url,
|
question_url,
|
||||||
is_anonymous,
|
is_anonymous,
|
||||||
amount,
|
amount,
|
||||||
|
status,
|
||||||
type
|
type
|
||||||
from cc_question
|
from cc_question
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
|
@ -46,6 +48,7 @@
|
||||||
question_url,
|
question_url,
|
||||||
is_anonymous,
|
is_anonymous,
|
||||||
amount,
|
amount,
|
||||||
|
status,
|
||||||
type
|
type
|
||||||
from cc_question
|
from cc_question
|
||||||
where del_flag = '0'
|
where del_flag = '0'
|
||||||
|
|
Loading…
Reference in New Issue