Browse Source

细化authentication异常,新增登录异常(无tonken获取用户信息失败)

songxinlu 3 years ago
parent
commit
7e1a73a451
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/diagbot/config/OAuth2Configurer.java

+ 1 - 1
src/main/java/com/diagbot/config/OAuth2Configurer.java

@@ -45,7 +45,7 @@ public class OAuth2Configurer extends AuthorizationServerConfigurerAdapter {
                 && sysDictionaryFacade.getDictionaryWithKey().containsKey("31")
                 && sysDictionaryFacade.getDictionaryWithKey().containsKey("31")
                 && sysDictionaryFacade.getDictionaryWithKey().get("31").containsKey("accessToken")
                 && sysDictionaryFacade.getDictionaryWithKey().get("31").containsKey("accessToken")
                 && sysDictionaryFacade.getDictionaryWithKey().get("31").containsKey("refreshToken")) {
                 && sysDictionaryFacade.getDictionaryWithKey().get("31").containsKey("refreshToken")) {
-            accessToken = Integer.parseInt("60");
+            accessToken = Integer.parseInt(sysDictionaryFacade.getDictionaryWithKey().get("31").get("accessToken"));
             refreshToken = Integer.parseInt(sysDictionaryFacade.getDictionaryWithKey().get("31").get("refreshToken"));
             refreshToken = Integer.parseInt(sysDictionaryFacade.getDictionaryWithKey().get("31").get("refreshToken"));
         }
         }
         clients.inMemory()
         clients.inMemory()