Skip to content

Commit

Permalink
fix [ 企业微信第三方服务调用getUserId接口时缺少 access_token. issues binarywang#2799 ]
Browse files Browse the repository at this point in the history
  • Loading branch information
沈军 committed Oct 18, 2022
1 parent 64b4856 commit 6722098
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public String getUserId(String mobile, String corpId) throws WxErrorException {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("mobile", mobile);
String url = mainService.getWxCpTpConfigStorage().getApiUrl(GET_USER_ID);
url += "&access_token=" + mainService.getWxCpTpConfigStorage().getAccessToken(corpId);
url += "?access_token=" + mainService.getWxCpTpConfigStorage().getAccessToken(corpId);
String responseContent = this.mainService.post(url, jsonObject.toString());
JsonObject tmpJsonElement = GsonParser.parse(responseContent);
return tmpJsonElement.getAsJsonObject().get("userid").getAsString();
Expand Down

0 comments on commit 6722098

Please sign in to comment.