|
|
@@ -266,7 +266,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
LocalDate localDateTime = LocalDate.parse(swapDate, formatter);
|
|
|
JsonObject preCheck = getExtendPreCheck(localDateTime, courseTable, swapCourseTable);
|
|
|
- if(!preCheck.get("data").getAsBoolean() && !preCheck.get("msg").isJsonNull()){
|
|
|
+ if(preCheck.get("code").getAsInt() == -1 && !preCheck.get("msg").isJsonNull()){
|
|
|
return preCheck.get("msg").getAsString();
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
@@ -277,7 +277,7 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
CourseTable courseTable = courseTableMapper.selectById(courseId);
|
|
|
try {
|
|
|
JsonObject jsonObject = substitutePreTestin(subTeacherId, courseTable);
|
|
|
- if(!jsonObject.get("data").getAsBoolean() && !jsonObject.get("msg").isJsonNull()){
|
|
|
+ if(jsonObject.get("code").getAsInt() == -1 && !jsonObject.get("msg").isJsonNull()){
|
|
|
return jsonObject.get("msg").getAsString();
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
@@ -349,7 +349,6 @@ public class CourseTableServiceImpl extends ServiceImpl<CourseTableMapper, Cours
|
|
|
//生成签名
|
|
|
String sign = ScheduleUtil.createSign(timestamp);
|
|
|
String result = ScheduleUtil.doPost(url, jsonObject.toString(), sign, timestamp);
|
|
|
- System.out.println(result);
|
|
|
}
|
|
|
|
|
|
/**
|