فهرست منبع

捕获运行时异常

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,
                     "用户图片验证码不一致!");