|
|
|
@ -36,7 +36,7 @@ public class UserServiceImpl extends ServiceImpl<GeoLayerMapper, GeoLayer> imple
|
|
|
|
|
public Object getUserByCode(String code) {
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
// 先请求accessToken
|
|
|
|
|
String accessTokenUrl = "http://2.46.4.197:8090/sso-server/oauth2/accessToken";
|
|
|
|
|
String accessTokenUrl = "http://180.108.205.123:8090/sso-server/oauth2/accessToken";
|
|
|
|
|
HttpHeaders headers = new HttpHeaders();
|
|
|
|
|
headers.setContentType(MediaType.MULTIPART_FORM_DATA);
|
|
|
|
|
MultiValueMap map = new LinkedMultiValueMap();
|
|
|
|
@ -53,7 +53,7 @@ public class UserServiceImpl extends ServiceImpl<GeoLayerMapper, GeoLayer> imple
|
|
|
|
|
// 获取accessToken
|
|
|
|
|
String accessToken=data.get("accessToken").toString();
|
|
|
|
|
// 获取用户
|
|
|
|
|
String userUrl = "http://2.46.4.197:8090/sso-server/oauth2/getUser";
|
|
|
|
|
String userUrl = "http://180.108.205.123:8090/sso-server/oauth2/getUser";
|
|
|
|
|
headers = new HttpHeaders();
|
|
|
|
|
headers.setContentType(MediaType.MULTIPART_FORM_DATA);
|
|
|
|
|
map = new LinkedMultiValueMap();
|
|
|
|
|