1、删除上次的提交更改

This commit is contained in:
PushM
2024-04-29 23:54:04 +08:00
parent 0b6174da96
commit 4d34098c5c
4 changed files with 10 additions and 20 deletions

View File

@@ -20,11 +20,10 @@ import java.util.concurrent.atomic.AtomicReference;
public class StateHandler {
@Value("${c3.pzff.host}")
private String c3_pzff;
private final WebClient client = WebClient.builder()
// .baseUrl("http://192.168.107.49:8088")
.baseUrl("http://"+c3_pzff)
.baseUrl("http://192.168.107.49:8088")
// .baseUrl("http://10.58.72.151:8088")
.build();
protected Boolean handleStart(TaskService taskService, CommandService commandService, Long taskId) {

View File

@@ -28,9 +28,6 @@ public class LoginService {
private final LoginMapper loginMapper;
@Value("${sso.host}")
private String HostSSO;
public LoginService(LoginMapper loginMapper) {
this.loginMapper = loginMapper;
}
@@ -54,7 +51,8 @@ public class LoginService {
ObjectMapper objectMapper = new ObjectMapper();
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("http://" + HostSSO + "/passport/accessToken?grant_type=client_credentials")
.url("http://114.243.134.122:9217/passport/accessToken?grant_type=client_credentials")
// .url("https://passport.iam.pub/passport/accessToken?grant_type=client_credentials")
.header("Authorization", "Basic TlNBRERAWlguT1JHOk14a1hHZ1ltOUNROUE3TCRSOCNLRW02R1pSeEhwd1c2")
.post(okhttp3.internal.Util.EMPTY_REQUEST)
.build();
@@ -78,7 +76,9 @@ public class LoginService {
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("sessionData", sessionData).build();
request = new Request.Builder()
.url("http://" + HostSSO + "/passport/accessApplication")
.url("http://114.243.134.122:9217/passport/accessApplication")
// .url("https://passport.iam.pub/passport/accessToken?grant_type=client_credentials")
.header("Authorization", "Bearer " + accessToken)
.header("Content-Type", "application/x-www-form-urlencoded")
.post(body)