孙永军 2 gadi atpakaļ
vecāks
revīzija
5eb9af868e

+ 2 - 2
src/main/java/com/sxtvs/open/api/clue/service/impl/ClueServiceImpl.java

@@ -82,7 +82,7 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements IC
     public void verify(VerifyDTO verifyDTO){
         Clue clue = getById(verifyDTO.getId());
         if(clue.getStatus() != 0){
-            throw new BizException(40001, "该条数据已审核");
+            throw new BizException(40006, "该条数据已审核");
         }
         clue.setStatus(verifyDTO.getStatus());
         updateById(clue);
@@ -104,7 +104,7 @@ public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements IC
     public void delete(Long id){
         Clue clue = getById(id);
         if(null == clue){
-            throw new BizException(40001, "不存在的信息");
+            throw new BizException(40006, "不存在的信息");
         }
         clue.setValidity((byte) 0);
         updateById(clue);

+ 1 - 1
src/main/java/com/sxtvs/open/core/auth/LoginInterceptor.java

@@ -41,7 +41,7 @@ public class LoginInterceptor implements AsyncHandlerInterceptor {
         }
 
         if (!AESUtil.isOk(token)) {
-            throw new BizException("没有登录");
+            throw new BizException(40001, "没有登录");
         }
         HttpContextUtil.setToken(token);