提交 eec26580 编写于 作者: 智布道's avatar 智布道 👁

🚑 优化代码

上级 421cabb1
......@@ -69,9 +69,11 @@ public class AuthChecker {
/**
* 校验回调传回的state
*
* @param state {@code state}一定不为空
*/
public static void checkState(String state) {
if (!AuthStateCache.containsKey(state)) {
if (StringUtils.isEmpty(state) || !AuthStateCache.containsKey(state)) {
throw new AuthException(AuthResponseStatus.ILLEGAL_REQUEST);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册