Compare commits
2 Commits
079a899822
...
3724528ea9
| Author | SHA1 | Date | |
|---|---|---|---|
| 3724528ea9 | |||
| 9885c19b50 |
@@ -388,8 +388,9 @@ public class LabelAllocateApiController {
|
||||
if (!labelAllocateService.isDownloadable(uuid)) {
|
||||
throw new BadRequestException();
|
||||
}
|
||||
|
||||
long t = System.currentTimeMillis();
|
||||
String uid = labelAllocateService.findLearnUid(uuid);
|
||||
log.info("findLearnUid took {} ms", System.currentTimeMillis() - t);
|
||||
Path zipPath = Paths.get(responsePath).resolve(uid + ".zip");
|
||||
long size = Files.size(zipPath);
|
||||
Resource resource = new org.springframework.core.io.UrlResource(zipPath.toUri());
|
||||
|
||||
Reference in New Issue
Block a user