官方客服代码优化

This commit is contained in:
wxl
2025-01-10 22:51:32 +08:00
parent 1b92d4371d
commit 3943c7e56e
6 changed files with 8 additions and 7 deletions

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -1 +1 @@
package com.dd.admin.business.webSocket.handler;
package com.dd.admin.business.webSocket.handler;

View File

@@ -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)){