认证同步
This commit is contained in:
@ -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
|
||||
|
||||
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user