删除评论
This commit is contained in:
parent
0b8413ef79
commit
9964dccf68
@ -240,9 +240,13 @@ public class CaseClinicalVideoService {
|
||||
}
|
||||
|
||||
// 检测用户是否视频作者
|
||||
boolean isAuthor = checkUserIsVideoAuthor(String.valueOf(video.getVideoId()),userId);
|
||||
if (!isAuthor) {
|
||||
return false;
|
||||
if (!Objects.equals(comment.getUserId(), Long.valueOf(userId))){
|
||||
// 检测用户是否文章作者
|
||||
boolean isAuthor = checkUserIsVideoAuthor(String.valueOf(video.getVideoId()),userId);
|
||||
if (!isAuthor) {
|
||||
System.out.println(333);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 删除评论
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user