|
@@ -3699,13 +3699,11 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
String respone = "";
|
|
|
try {
|
|
|
respone = HttpUtils.sendGet(OLD_STUDY_CHECK, param);
|
|
|
- if (respone.contains("\"Status\":true")) {
|
|
|
- JSONObject jsonObject1 = JSONObject.parseObject(respone);
|
|
|
- UserStudyTimeVo timeVo = JSONArray.parseObject(jsonObject1.get("data").toString(), UserStudyTimeVo.class);
|
|
|
- if (ObjectUtils.isNotNull(timeVo) && ObjectUtils.isNotNull(timeVo.getStudyStartTime()) && timeVo.getStudyFlag()){
|
|
|
- //旧系统正在学习中
|
|
|
- return 1L;
|
|
|
- }
|
|
|
+ JSONObject jsonObject1 = JSONObject.parseObject(respone);
|
|
|
+ UserStudyTimeVo timeVo = JSONArray.parseObject(jsonObject1.get("data").toString(), UserStudyTimeVo.class);
|
|
|
+ if (ObjectUtils.isNotNull(timeVo) && ObjectUtils.isNotNull(timeVo.getStudyStartTime()) && timeVo.getStudyFlag()){
|
|
|
+ //旧系统正在学习中
|
|
|
+ return 1L;
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
throw new CustomException("旧系统二建继续校验接口请求失败"+e.getMessage());
|