mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 11:26:50 +08:00
提交测试
This commit is contained in:
@@ -88,6 +88,7 @@ public class OutSideDataServiceImpl implements IOutSideDataService {
|
||||
public UserData getUserInfoByUserId(String userId) {
|
||||
|
||||
String token = TokenProxy.getBoeToken(request);
|
||||
log.info("请求user/info: "+token);
|
||||
//String token="eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NzIxMTI3NTUsImV4cCI6MTY3MjExOTk1NSwiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.1348e0cfbb064d6d348d3976db3618974c1b1e8d2f6c6f45ae8294f09223f9b1";
|
||||
String type="application/json";
|
||||
String[] headers=new String[] {"token",token,"Content-Type",type};
|
||||
@@ -97,6 +98,9 @@ public class OutSideDataServiceImpl implements IOutSideDataService {
|
||||
try {
|
||||
//OkHttpUtil http=new OkHttpUtil();
|
||||
String responseStr = okHttpUtil.doPostJson(url,"{}", headers);
|
||||
if(StringUtils.isBlank(responseStr)) {
|
||||
log.error("获取user/info返回空值");
|
||||
}
|
||||
log.info("获取用户信息:",responseStr);
|
||||
//System.out.println(responseStr);
|
||||
JsonNode rootNode= mapper.readTree(responseStr);
|
||||
|
||||
Reference in New Issue
Block a user