Commit 247ba66917f75601ca23a6555439fe16c0922d1c
1 parent
75b4d460
修复评论中的禁言bug
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/serviceImpl/NotspeakServiceImpl.java
| ... | ... | @@ -123,7 +123,7 @@ public class NotspeakServiceImpl { |
| 123 | 123 | return success; |
| 124 | 124 | } |
| 125 | 125 | boolean res = writeNotSpeakByComment(commentId, time, userId); |
| 126 | - if (res) { | |
| 126 | + if (!res) { | |
| 127 | 127 | success = new ResponseBean(500, "评论禁言修改禁言表失败!"); |
| 128 | 128 | return success; |
| 129 | 129 | } | ... | ... |