From a52d34ed75ab82da24329624835902287075486f Mon Sep 17 00:00:00 2001 From: "yadong.zhang" Date: Sat, 18 May 2019 12:58:54 +0800 Subject: [PATCH] =?UTF-8?q?:bulb:=20=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=EF=BC=8C=E5=8F=91=E5=B8=83jar=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/me/zhyd/oauth/consts/ApiUrl.java | 10 ++++++++++ .../me/zhyd/oauth/request/AuthWeChatRequest.java | 12 +++--------- src/main/java/me/zhyd/oauth/utils/IpUtils.java | 2 ++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/main/java/me/zhyd/oauth/consts/ApiUrl.java b/src/main/java/me/zhyd/oauth/consts/ApiUrl.java index 993dadf..e895b89 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 5e4ca9c..d74a6d4 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 d8aeebf..9da2bcb 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 { -- GitLab