Skip to content

Commit 017e6bb

Browse files
authored
Merge pull request binarywang#112 from withinthefog/openid
企业号oauth2认证接口返回值中添加openid
2 parents 96d4597 + 0350182 commit 017e6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ public String[] oauth2getUserInfo(Integer agentId, String code) throws WxErrorEx
491491
String responseText = get(url, null);
492492
JsonElement je = new JsonParser().parse(responseText);
493493
JsonObject jo = je.getAsJsonObject();
494-
return new String[]{GsonHelper.getString(jo, "UserId"), GsonHelper.getString(jo, "DeviceId")};
494+
return new String[]{GsonHelper.getString(jo, "UserId"), GsonHelper.getString(jo, "DeviceId"), GsonHelper.getString(jo, "OpenId")};
495495
}
496496

497497
@Override

0 commit comments

Comments
 (0)