官方客服代码优化
This commit is contained in:
@@ -57,7 +57,6 @@ public class StarNotesServiceImpl extends ServiceImpl<StarNotesMapper, StarNotes
|
||||
public void readMessage(String authorId) {
|
||||
LambdaUpdateWrapper<StarNotes> queryWrapper = new LambdaUpdateWrapper();
|
||||
queryWrapper.eq(StarNotes::getAuthorId,authorId);
|
||||
queryWrapper.ne(StarNotes::getFollowId,authorId);
|
||||
queryWrapper.set(StarNotes::getMessageStatus,1);
|
||||
this.update(queryWrapper);
|
||||
}
|
||||
|
@@ -62,7 +62,6 @@ public class UpNotesServiceImpl extends ServiceImpl<UpNotesMapper, UpNotes> impl
|
||||
public void readMessage(String authorId) {
|
||||
LambdaUpdateWrapper<UpNotes> queryWrapper = new LambdaUpdateWrapper();
|
||||
queryWrapper.eq(UpNotes::getAuthorId,authorId);
|
||||
queryWrapper.ne(UpNotes::getFollowId,authorId);
|
||||
queryWrapper.set(UpNotes::getMessageStatus,1);
|
||||
this.update(queryWrapper);
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
package com.dd.admin.business.webSocket.handler;
|
||||
package com.dd.admin.business.webSocket.handler;
|
@@ -56,7 +56,7 @@ public class ApiInterceptor implements HandlerInterceptor {
|
||||
|
||||
Author author = authorService.getById(authorId);
|
||||
if(author==null){
|
||||
throw new ApiException(700,"token已失效");
|
||||
throw new ApiException(700,"该用户已删除~");
|
||||
}
|
||||
request.setAttribute("author",author);
|
||||
if(author.getAuthorStatus()!=null&&author.getAuthorStatus().equals(1)){
|
||||
|
Reference in New Issue
Block a user