From a043aa978053c2c777a368cfbb4ab42d250c1705 Mon Sep 17 00:00:00 2001 From: eric <465889110@qq.com> Date: Tue, 30 Sep 2025 17:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/sczx/user/service/impl/UserServiceImpl.java | 4 ++++ .../java/com/sczx/user/thirdpart/integration/AlipayInteg.java | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sczx/user/service/impl/UserServiceImpl.java b/src/main/java/com/sczx/user/service/impl/UserServiceImpl.java index 2c271f1..6ab0538 100644 --- a/src/main/java/com/sczx/user/service/impl/UserServiceImpl.java +++ b/src/main/java/com/sczx/user/service/impl/UserServiceImpl.java @@ -344,6 +344,10 @@ public class UserServiceImpl implements IUserService { updateWrapper.set(BaseUserPO::getBackPhoto, authRequest.getBackPhoto()); updateWrapper.set(BaseUserPO::getAuthed, 1); baseUserRepo.update(updateWrapper); + // 推送用户ID + ThreadPoolUtils.getThreadPool().execute(() -> { + syncInteg.sendUserInfoToBattery(authRequest.getUserId().toString()); + }); } @Override diff --git a/src/main/java/com/sczx/user/thirdpart/integration/AlipayInteg.java b/src/main/java/com/sczx/user/thirdpart/integration/AlipayInteg.java index 5ba23fb..e725ffb 100644 --- a/src/main/java/com/sczx/user/thirdpart/integration/AlipayInteg.java +++ b/src/main/java/com/sczx/user/thirdpart/integration/AlipayInteg.java @@ -1,6 +1,7 @@ package com.sczx.user.thirdpart.integration; +import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; @@ -148,7 +149,7 @@ public class AlipayInteg { tokenRequest.setCode(authCode); log.info("获取支付宝access_token请求参数: {}", tokenRequest); AlipaySystemOauthTokenResponse tokenResponse = alipayClient.certificateExecute(tokenRequest); - log.info("获取支付宝access_token返回结果: {}", tokenResponse.getBody()); + log.info("获取支付宝access_token返回结果: {}", JSON.toJSONString(tokenResponse)); if (!tokenResponse.isSuccess()) { log.error("获取支付宝access_token失败: {}", tokenResponse.getSubMsg());