...
|
...
|
@@ -216,11 +216,13 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { |
|
|
try {
|
|
|
response = alipayClient.execute(request);
|
|
|
} catch (AlipayApiException e) {
|
|
|
logger.warn("autoBindAliPayAccount AlipaySystemOauthTokenRequest error! uid={},auth_code={},response={}, e: {}", uid, auth_code, response, e);
|
|
|
logger.warn("autoBindAliPayAccount AlipaySystemOauthTokenRequest error! uid={},auth_code={},response.getCode={},response.getSubCode={} e: {}", uid, auth_code,
|
|
|
response == null ? "":response.getCode(), response == null ? "":response.getSubCode(), e);
|
|
|
throw new GatewayException(400, "支付宝绑定失败,请重试");
|
|
|
}
|
|
|
|
|
|
logger.info("autoBindAliPayAccount AlipaySystemOauthTokenRequest uid={},auth_code={},response={}", uid, auth_code, response);
|
|
|
logger.info("autoBindAliPayAccount AlipaySystemOauthTokenRequest uid={},auth_code={},response.getCode={},response.getSubCode={}", uid, auth_code,
|
|
|
response == null ? "":response.getCode(),response == null ? "":response.getSubCode());
|
|
|
//调用成功
|
|
|
if (response.isSuccess()) {
|
|
|
access_token = response.getAccessToken();
|
...
|
...
|
@@ -236,11 +238,14 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { |
|
|
try {
|
|
|
response = alipayClient.execute(request, access_token);
|
|
|
} catch (AlipayApiException e) {
|
|
|
logger.warn("autoBindAliPayAccount AlipayUserInfoShareRequest error! uid={},auth_code={},access_token={},response={}, e: {}", uid, auth_code, access_token,response, e);
|
|
|
logger.warn("autoBindAliPayAccount AlipayUserInfoShareRequest error! uid={},auth_code={},access_token={},response.getCode={},response.getSubCode={}, e: {}", uid, auth_code, access_token,
|
|
|
response == null ? "": response.getCode(), response == null ? "":response.getSubCode(), e);
|
|
|
throw new GatewayException(400, "支付宝绑定失败,请重试");
|
|
|
}
|
|
|
|
|
|
logger.info("autoBindAliPayAccount AlipayUserInfoShareRequest , uid={},auth_code={},access_token={}, response={}", uid, auth_code, access_token,response);
|
|
|
logger.info("autoBindAliPayAccount AlipayUserInfoShareRequest , uid={},auth_code={},access_token={}, response.getCode={},response.getSubCode={}", uid, auth_code, access_token,
|
|
|
response == null ? "": response.getCode(), response == null ? "":response.getSubCode());
|
|
|
|
|
|
if (!response.isSuccess()) {
|
|
|
throw new GatewayException(400, "支付宝绑定失败,请重试");
|
|
|
}
|
...
|
...
|
@@ -249,7 +254,7 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { |
|
|
String alipayUid = response.getUserId();
|
|
|
String nickName = response.getNickName();
|
|
|
if(StringUtils.isBlank(alipayUid)){
|
|
|
logger.warn("autoBindAliPayAccount error, alipayUid is blank! uid={},auth_code={},access_token={}, response={} ",uid, auth_code,access_token, response);
|
|
|
logger.warn("autoBindAliPayAccount error, alipayUid is blank! uid={},auth_code={},access_token={}",uid, auth_code,access_token);
|
|
|
throw new GatewayException(400, "支付宝绑定失败,请重试");
|
|
|
}
|
|
|
|
...
|
...
|
|