|
|
@@ -65,7 +65,7 @@ public class BiHeServiceImpl implements BiHeService {
|
|
|
}catch (Exception e){
|
|
|
throw new VisibleError(e.getMessage());
|
|
|
}
|
|
|
- BiHeResult<BiHeUserInfo> userRoot = JSON.parseObject(content, BiHeResult.class);
|
|
|
+ BiHeResult<BiHeUserInfo> userRoot = JSON.parseObject(content, new TypeReference<BiHeResult<BiHeUserInfo>>() {});
|
|
|
if (!BiHeResult.Code.OK.getCode().equals(userRoot.getCode())) {
|
|
|
throw new VisibleError(userRoot.getMsg());
|
|
|
}
|
|
|
@@ -85,7 +85,7 @@ public class BiHeServiceImpl implements BiHeService {
|
|
|
}catch (Exception e){
|
|
|
throw new VisibleError(e.getMessage());
|
|
|
}
|
|
|
- BiHeResult<String> userRoot = JSON.parseObject(content, BiHeResult.class);
|
|
|
+ BiHeResult<String> userRoot = JSON.parseObject(content, new TypeReference<BiHeResult<String>>() {});
|
|
|
if (!BiHeResult.Code.OK.getCode().equals(userRoot.getCode())) {
|
|
|
throw new VisibleError(userRoot.getMsg());
|
|
|
}
|
|
|
@@ -112,7 +112,7 @@ public class BiHeServiceImpl implements BiHeService {
|
|
|
}catch (Exception e){
|
|
|
throw new VisibleError(e.getMessage());
|
|
|
}
|
|
|
- BiHeResult<String> userRoot = JSON.parseObject(content, BiHeResult.class);
|
|
|
+ BiHeResult<String> userRoot = JSON.parseObject(content, new TypeReference<BiHeResult<String>>() {});
|
|
|
if (!BiHeResult.Code.OK.getCode().equals(userRoot.getCode())) {
|
|
|
throw new VisibleError(userRoot.getMsg());
|
|
|
}
|
|
|
@@ -134,7 +134,7 @@ public class BiHeServiceImpl implements BiHeService {
|
|
|
}catch (Exception e){
|
|
|
throw new VisibleError(e.getMessage());
|
|
|
}
|
|
|
- BiHeResult<String> userRoot = JSON.parseObject(content, BiHeResult.class);
|
|
|
+ BiHeResult<String> userRoot = JSON.parseObject(content, new TypeReference<BiHeResult<String>>() {});
|
|
|
if (!BiHeResult.Code.OK.getCode().equals(userRoot.getCode())) {
|
|
|
throw new VisibleError(userRoot.getMsg());
|
|
|
}
|