diff --git a/src/main/java/me/zhyd/oauth/consts/ApiUrl.java b/src/main/java/me/zhyd/oauth/consts/ApiUrl.java index 993dadf8b790a845bc5f911317ac695c43d29ee7..e895b89a00b7b99507956eca07d857118de2d1e7 100644 --- a/src/main/java/me/zhyd/oauth/consts/ApiUrl.java +++ b/src/main/java/me/zhyd/oauth/consts/ApiUrl.java @@ -362,26 +362,36 @@ public enum ApiUrl { /** * 授权的api + * + * @return url */ public abstract String authorize(); /** * 获取accessToken的api + * + * @return url */ public abstract String accessToken(); /** * 获取用户信息的api + * + * @return url */ public abstract String userInfo(); /** * 取消授权的api + * + * @return url */ public abstract String revoke(); /** * 刷新授权的api + * + * @return url */ public abstract String refresh(); diff --git a/src/main/java/me/zhyd/oauth/request/AuthWeChatRequest.java b/src/main/java/me/zhyd/oauth/request/AuthWeChatRequest.java index 5e4ca9c6c74b148bcc1f71d979e66564b11cbd9f..d74a6d4c10a1a2a35da21cfa6e7a375cf9ca8609 100644 --- a/src/main/java/me/zhyd/oauth/request/AuthWeChatRequest.java +++ b/src/main/java/me/zhyd/oauth/request/AuthWeChatRequest.java @@ -9,17 +9,11 @@ import me.zhyd.oauth.model.*; import me.zhyd.oauth.utils.UrlBuilder; /** - *

* 微信登录 - *

* - * @package: me.zhyd.oauth.request - * @description: 微信登录 - * @author: yangkai.shen - * @date: Created in 2019-05-17 11:11 - * @copyright: Copyright (c) 2019 - * @version: V1.0 - * @modified: yangkai.shen + * @author yangkai.shen (https://xkcoding.com) + * @version 1.0 + * @since 1.8 */ public class AuthWeChatRequest extends BaseAuthRequest { public AuthWeChatRequest(AuthConfig config) { diff --git a/src/main/java/me/zhyd/oauth/utils/IpUtils.java b/src/main/java/me/zhyd/oauth/utils/IpUtils.java index d8aeebf21291eee24e46f362eda08de8cfa9f779..9da2bcb561e11350c1b130ce0e25f841374b8df6 100644 --- a/src/main/java/me/zhyd/oauth/utils/IpUtils.java +++ b/src/main/java/me/zhyd/oauth/utils/IpUtils.java @@ -14,6 +14,8 @@ public class IpUtils { /** * 获取IP + * + * @return ip */ public static String getIp() { try {