认证同步

This commit is contained in:
2025-09-30 17:38:50 +08:00
parent 785caaeefc
commit a043aa9780
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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());