From f717f16e25ca93371d62cc652e51e043e9228a27 Mon Sep 17 00:00:00 2001 From: sishuiyunyan Date: Wed, 31 Mar 2021 10:53:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E7=BD=91=E9=A1=B5=E6=8E=88=E6=9D=83=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF(=E9=9D=9E?= =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=94=A8=E6=88=B7)=E6=97=B6,=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=BC=BA=E5=A4=B1external=5Fuserid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java | 1 + .../main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java | 1 + 2 files changed, 2 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java index f271149ee9..37adc1be67 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java @@ -76,6 +76,7 @@ public WxCpOauth2UserInfo getUserInfo(Integer agentId, String code) throws WxErr .openId(GsonHelper.getString(jo, "OpenId")) .userTicket(GsonHelper.getString(jo, "user_ticket")) .expiresIn(GsonHelper.getString(jo, "expires_in")) + .externalUserid(GsonHelper.getString(jo, "external_userid")) .build(); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java index 9122f18d3a..cd4428befd 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java @@ -25,4 +25,5 @@ public class WxCpOauth2UserInfo { private String userId; private String userTicket; private String expiresIn; + private String externalUserid; } From e5f4d35acd87630a96dda0a4b271905e82cf6474 Mon Sep 17 00:00:00 2001 From: sishuiyunyan Date: Wed, 31 Mar 2021 11:34:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E7=BD=91=E9=A1=B5=E6=8E=88=E6=9D=83=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF(=E9=9D=9E?= =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=94=A8=E6=88=B7)=E6=97=B6,=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=BC=BA=E5=A4=B1external=5Fuserid=20=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E8=A7=84=E8=8C=83=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java | 2 +- .../main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java index 37adc1be67..8f989f23d8 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpOAuth2ServiceImpl.java @@ -76,7 +76,7 @@ public WxCpOauth2UserInfo getUserInfo(Integer agentId, String code) throws WxErr .openId(GsonHelper.getString(jo, "OpenId")) .userTicket(GsonHelper.getString(jo, "user_ticket")) .expiresIn(GsonHelper.getString(jo, "expires_in")) - .externalUserid(GsonHelper.getString(jo, "external_userid")) + .externalUserId(GsonHelper.getString(jo, "external_userid")) .build(); } diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java index cd4428befd..90e6142b3e 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpOauth2UserInfo.java @@ -25,5 +25,5 @@ public class WxCpOauth2UserInfo { private String userId; private String userTicket; private String expiresIn; - private String externalUserid; + private String externalUserId; }