소스 검색

捕获运行时异常

zhoutg 6 년 전
부모
커밋
e37fe81b88
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      user-service/src/main/java/com/diagbot/service/impl/ImgVerServiceImpl.java

+ 1 - 1
user-service/src/main/java/com/diagbot/service/impl/ImgVerServiceImpl.java

@@ -131,7 +131,7 @@ public class ImgVerServiceImpl implements ImgVerService {
             throw new CommonException(ErrorCode.PARAM_IS_ERROR,
                     "图片验证码唯一标志不一致!");
         }
-        if (!(imgVerInfoRes.getCode().toUpperCase()).equals(imgVerInfo.getCode())) {
+        if (!(imgVerInfoRes.getCode()).equals(imgVerInfo.getCode().toUpperCase())) {
             log.info("用户图片验证码不一致!验证码:{}", imgVerInfo.getCode());
             throw new CommonException(ErrorCode.PARAM_IS_ERROR,
                     "用户图片验证码不一致!");