Commit 01b0866aa4b94483a8152be1392b263606c42d47
1 parent
3da2449a
fix: 修改了函数名拼写
Showing
2 changed files
with
2 additions
and
2 deletions
yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/enums/oauth2/OAuth2GrantTypeEnum.java
| @@ -22,7 +22,7 @@ public enum OAuth2GrantTypeEnum { | @@ -22,7 +22,7 @@ public enum OAuth2GrantTypeEnum { | ||
| 22 | 22 | ||
| 23 | private final String grantType; | 23 | private final String grantType; |
| 24 | 24 | ||
| 25 | - public static OAuth2GrantTypeEnum getByGranType(String grantType) { | 25 | + public static OAuth2GrantTypeEnum getByGrantType(String grantType) { |
| 26 | return ArrayUtil.firstMatch(o -> o.getGrantType().equals(grantType), values()); | 26 | return ArrayUtil.firstMatch(o -> o.getGrantType().equals(grantType), values()); |
| 27 | } | 27 | } |
| 28 | 28 |
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/oauth2/OAuth2OpenController.java
| @@ -105,7 +105,7 @@ public class OAuth2OpenController { | @@ -105,7 +105,7 @@ public class OAuth2OpenController { | ||
| 105 | @RequestParam(value = "refresh_token", required = false) String refreshToken) { // 刷新模式 | 105 | @RequestParam(value = "refresh_token", required = false) String refreshToken) { // 刷新模式 |
| 106 | List<String> scopes = OAuth2Utils.buildScopes(scope); | 106 | List<String> scopes = OAuth2Utils.buildScopes(scope); |
| 107 | // 1.1 校验授权类型 | 107 | // 1.1 校验授权类型 |
| 108 | - OAuth2GrantTypeEnum grantTypeEnum = OAuth2GrantTypeEnum.getByGranType(grantType); | 108 | + OAuth2GrantTypeEnum grantTypeEnum = OAuth2GrantTypeEnum.getByGrantType(grantType); |
| 109 | if (grantTypeEnum == null) { | 109 | if (grantTypeEnum == null) { |
| 110 | throw exception0(BAD_REQUEST.getCode(), StrUtil.format("未知授权类型({})", grantType)); | 110 | throw exception0(BAD_REQUEST.getCode(), StrUtil.format("未知授权类型({})", grantType)); |
| 111 | } | 111 | } |