|
@@ -75,7 +75,7 @@ public class WebSocketOeMessageTemplete {
|
|
if (Objects.isNull(jsonObject.get("progress")) || Objects.equals(jsonObject.get("progress"), "")) {
|
|
if (Objects.isNull(jsonObject.get("progress")) || Objects.equals(jsonObject.get("progress"), "")) {
|
|
throw new BusinessException("答题进度不能为空");
|
|
throw new BusinessException("答题进度不能为空");
|
|
}
|
|
}
|
|
- Double progress = Double.parseDouble(String.valueOf(jsonObject.get("durationSeconds")));
|
|
|
|
|
|
+ Double progress = Double.parseDouble(String.valueOf(jsonObject.get("progress")));
|
|
if (Objects.isNull(jsonObject.get("durationSeconds")) || Objects.equals(jsonObject.get("durationSeconds"), "")) {
|
|
if (Objects.isNull(jsonObject.get("durationSeconds")) || Objects.equals(jsonObject.get("durationSeconds"), "")) {
|
|
throw new BusinessException("考试累计用时秒数不能为空");
|
|
throw new BusinessException("考试累计用时秒数不能为空");
|
|
}
|
|
}
|