|
@@ -417,6 +417,13 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
|
|
|
if (Objects.nonNull(struct)) {
|
|
|
ossUtil.upload(false, structFilePath, struct.getContent());
|
|
|
}
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("考试持久化失败", e);
|
|
|
+ if (e instanceof BusinessException) {
|
|
|
+ throw new BusinessException(e.getMessage());
|
|
|
+ } else {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
} finally {
|
|
|
FileUtil.deleteFolder(dir);
|
|
|
}
|