|
@@ -117,6 +117,9 @@ public class TEExamPaperServiceImpl extends ServiceImpl<TEExamPaperMapper, TEExa
|
|
|
ret.setPaperPath(ep.getPaperPath());
|
|
|
if (Objects.isNull(ep.getPaperMd5())) {
|
|
|
try {
|
|
|
+ if (Objects.isNull(ep.getPaperPath())) {
|
|
|
+ throw new BusinessException("未上传试卷结构");
|
|
|
+ }
|
|
|
ep.setPaperMd5(BinaryUtil.encodeMD5(ossUtil.download(false, ep.getPaperPath())));
|
|
|
if (Objects.isNull(ep.getStructMd5())) {
|
|
|
ep.setStructMd5(BinaryUtil.encodeMD5(ossUtil.download(false, ep.getStructPath())));
|