Merge pull request #112 from withinthefog/openid

企业号oauth2认证接口返回值中添加openid
This commit is contained in:
Binary Wang 2016-12-30 11:54:09 +08:00 committed by GitHub
commit 017e6bb0fe

View File

@ -491,7 +491,7 @@ public class WxCpServiceImpl implements WxCpService {
String responseText = get(url, null);
JsonElement je = new JsonParser().parse(responseText);
JsonObject jo = je.getAsJsonObject();
return new String[]{GsonHelper.getString(jo, "UserId"), GsonHelper.getString(jo, "DeviceId")};
return new String[]{GsonHelper.getString(jo, "UserId"), GsonHelper.getString(jo, "DeviceId"), GsonHelper.getString(jo, "OpenId")};
}
@Override