|
@@ -1,6 +1,5 @@
|
|
|
package com.zd.alg.forward.serivce;
|
|
package com.zd.alg.forward.serivce;
|
|
|
|
|
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.zd.alg.forward.config.AlgorithmYml;
|
|
import com.zd.alg.forward.config.AlgorithmYml;
|
|
|
import com.zd.auth.feign.RemoteAuthService;
|
|
import com.zd.auth.feign.RemoteAuthService;
|
|
|
import com.zd.auth.form.LoginBody;
|
|
import com.zd.auth.form.LoginBody;
|
|
@@ -10,19 +9,12 @@ import com.zd.model.constant.SecurityConstants;
|
|
|
import com.zd.model.domain.R;
|
|
import com.zd.model.domain.R;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.core.ParameterizedTypeReference;
|
|
|
|
|
-import org.springframework.http.HttpEntity;
|
|
|
|
|
-import org.springframework.http.HttpMethod;
|
|
|
|
|
-import org.springframework.http.ResponseEntity;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.Assert;
|
|
import org.springframework.util.Assert;
|
|
|
import org.springframework.web.client.RestClientException;
|
|
import org.springframework.web.client.RestClientException;
|
|
|
-import org.springframework.web.client.RestTemplate;
|
|
|
|
|
-
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
-import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
@Service
|
|
@Service
|
|
@@ -68,12 +60,6 @@ public class LoginService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- public String getCacheToken() {
|
|
|
|
|
- //换取缓存的token
|
|
|
|
|
- return getToken();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 刷新key
|
|
* 刷新key
|
|
|
*/
|
|
*/
|
|
@@ -98,5 +84,4 @@ public class LoginService {
|
|
|
refreshToken();
|
|
refreshToken();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|