Bläddra i källkod

Merge remote-tracking branch 'origin/dev/one' into dev/one

wangyu 6 år sedan
förälder
incheckning
ae016768d5

+ 1 - 3
user-service/src/main/java/com/diagbot/facade/UserAuthenticationFacade.java

@@ -226,9 +226,7 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
                 eq("is_deleted", IsDeleteEnum.N.getKey()).
                 eq("is_deleted", IsDeleteEnum.N.getKey()).
                 orderByDesc("gmt_create");
                 orderByDesc("gmt_create");
         UserAuthentication userAuthentication = this.getOne(qw);
         UserAuthentication userAuthentication = this.getOne(qw);
-        if (userAuthentication == null) {
-            throw new CommonException(CommonErrorCode.NOT_EXISTS, "当前用户没有认证信息");
-        } else {
+        if (userAuthentication != null) {
             map.put("userAuthentication", userAuthentication);
             map.put("userAuthentication", userAuthentication);
         }
         }
         return map;
         return map;