oauth2认证接口返回值中添加openid

This commit is contained in:
cty 2016-12-07 11:43:17 +08:00
parent 96d4597e0f
commit 0350182db1

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