Showing
1 changed file
with
10 additions
and
5 deletions
@@ -216,11 +216,13 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { | @@ -216,11 +216,13 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { | ||
216 | try { | 216 | try { |
217 | response = alipayClient.execute(request); | 217 | response = alipayClient.execute(request); |
218 | } catch (AlipayApiException e) { | 218 | } catch (AlipayApiException e) { |
219 | - logger.warn("autoBindAliPayAccount AlipaySystemOauthTokenRequest error! uid={},auth_code={},response={}, e: {}", uid, auth_code, response, e); | 219 | + logger.warn("autoBindAliPayAccount AlipaySystemOauthTokenRequest error! uid={},auth_code={},response.getCode={},response.getSubCode={} e: {}", uid, auth_code, |
220 | + response == null ? "":response.getCode(), response == null ? "":response.getSubCode(), e); | ||
220 | throw new GatewayException(400, "支付宝绑定失败,请重试"); | 221 | throw new GatewayException(400, "支付宝绑定失败,请重试"); |
221 | } | 222 | } |
222 | 223 | ||
223 | - logger.info("autoBindAliPayAccount AlipaySystemOauthTokenRequest uid={},auth_code={},response={}", uid, auth_code, response); | 224 | + logger.info("autoBindAliPayAccount AlipaySystemOauthTokenRequest uid={},auth_code={},response.getCode={},response.getSubCode={}", uid, auth_code, |
225 | + response == null ? "":response.getCode(),response == null ? "":response.getSubCode()); | ||
224 | //调用成功 | 226 | //调用成功 |
225 | if (response.isSuccess()) { | 227 | if (response.isSuccess()) { |
226 | access_token = response.getAccessToken(); | 228 | access_token = response.getAccessToken(); |
@@ -236,11 +238,14 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { | @@ -236,11 +238,14 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { | ||
236 | try { | 238 | try { |
237 | response = alipayClient.execute(request, access_token); | 239 | response = alipayClient.execute(request, access_token); |
238 | } catch (AlipayApiException e) { | 240 | } catch (AlipayApiException e) { |
239 | - logger.warn("autoBindAliPayAccount AlipayUserInfoShareRequest error! uid={},auth_code={},access_token={},response={}, e: {}", uid, auth_code, access_token,response, e); | 241 | + logger.warn("autoBindAliPayAccount AlipayUserInfoShareRequest error! uid={},auth_code={},access_token={},response.getCode={},response.getSubCode={}, e: {}", uid, auth_code, access_token, |
242 | + response == null ? "": response.getCode(), response == null ? "":response.getSubCode(), e); | ||
240 | throw new GatewayException(400, "支付宝绑定失败,请重试"); | 243 | throw new GatewayException(400, "支付宝绑定失败,请重试"); |
241 | } | 244 | } |
242 | 245 | ||
243 | - logger.info("autoBindAliPayAccount AlipayUserInfoShareRequest , uid={},auth_code={},access_token={}, response={}", uid, auth_code, access_token,response); | 246 | + logger.info("autoBindAliPayAccount AlipayUserInfoShareRequest , uid={},auth_code={},access_token={}, response.getCode={},response.getSubCode={}", uid, auth_code, access_token, |
247 | + response == null ? "": response.getCode(), response == null ? "":response.getSubCode()); | ||
248 | + | ||
244 | if (!response.isSuccess()) { | 249 | if (!response.isSuccess()) { |
245 | throw new GatewayException(400, "支付宝绑定失败,请重试"); | 250 | throw new GatewayException(400, "支付宝绑定失败,请重试"); |
246 | } | 251 | } |
@@ -249,7 +254,7 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { | @@ -249,7 +254,7 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { | ||
249 | String alipayUid = response.getUserId(); | 254 | String alipayUid = response.getUserId(); |
250 | String nickName = response.getNickName(); | 255 | String nickName = response.getNickName(); |
251 | if(StringUtils.isBlank(alipayUid)){ | 256 | if(StringUtils.isBlank(alipayUid)){ |
252 | - logger.warn("autoBindAliPayAccount error, alipayUid is blank! uid={},auth_code={},access_token={}, response={} ",uid, auth_code,access_token, response); | 257 | + logger.warn("autoBindAliPayAccount error, alipayUid is blank! uid={},auth_code={},access_token={}",uid, auth_code,access_token); |
253 | throw new GatewayException(400, "支付宝绑定失败,请重试"); | 258 | throw new GatewayException(400, "支付宝绑定失败,请重试"); |
254 | } | 259 | } |
255 | 260 |
-
Please register or login to post a comment