调试日志

20230922-ljl-fixBug
wangchaoxu 1 year ago
parent 7f1fc8705d
commit e614d38e0a

@ -2,6 +2,7 @@ package com.ms.api.task;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSONObject;
import com.doudian.open.api.token_refresh.TokenRefreshRequest; import com.doudian.open.api.token_refresh.TokenRefreshRequest;
import com.doudian.open.api.token_refresh.TokenRefreshResponse; import com.doudian.open.api.token_refresh.TokenRefreshResponse;
import com.doudian.open.api.token_refresh.param.TokenRefreshParam; import com.doudian.open.api.token_refresh.param.TokenRefreshParam;
@ -100,6 +101,7 @@ public class RefreshTokenTaskService extends TaskBaseService {
TokenRefreshParam param = request.getParam(); TokenRefreshParam param = request.getParam();
param.setRefreshToken(oldRefreshToken); param.setRefreshToken(oldRefreshToken);
param.setGrantType("refresh_token"); param.setGrantType("refresh_token");
log.info("TokenRefreshParam: " + JSONObject.toJSONString(param));
TokenRefreshResponse response = request.execute(); TokenRefreshResponse response = request.execute();
String newAccessToken = response.getData().getAccessToken(); String newAccessToken = response.getData().getAccessToken();
String newRefreshToken = response.getData().getRefreshToken(); String newRefreshToken = response.getData().getRefreshToken();

Loading…
Cancel
Save