|
|
@@ -917,15 +917,7 @@ public class UserServiceImpl implements IUserService {
|
|
|
request.setGrantType("authorization_code");
|
|
|
AlipaySystemOauthTokenResponse responseToken = alipayClient.certificateExecute(request);
|
|
|
if (responseToken.isSuccess()) {
|
|
|
- //获取用户信息
|
|
|
- AlipayUserInfoShareRequest alipayUserInfoShareRequest = new AlipayUserInfoShareRequest();
|
|
|
- AlipayUserInfoShareResponse response = alipayClient.execute(alipayUserInfoShareRequest, responseToken.getAccessToken());
|
|
|
- if (response.isSuccess()) {
|
|
|
- //付贝需要userid
|
|
|
- return response.getUserId();
|
|
|
- } else {
|
|
|
- throw new ServiceException("获取用户信息调用失败");
|
|
|
- }
|
|
|
+ return responseToken.getUserId();
|
|
|
} else {
|
|
|
throw new ServiceException("获取accessToken调用失败");
|
|
|
}
|