| | |
| | | import java.io.IOException; |
| | | import java.net.URL; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | import static com.dji.sample.component.AuthInterceptor.TOKEN_CLAIM; |
| | | |
| | |
| | | |
| | | @GetMapping("/getMediaInfo") |
| | | public ResponseResult mediaInfo(@RequestParam String fileName) { |
| | | |
| | | Object info = fileService.mediaInfo(fileName); |
| | | if (info == null) { |
| | | return ResponseResult.error("图片正在解析中"); |
| | | if (info!=null){ |
| | | return ResponseResult.success(info); |
| | | } |
| | | return ResponseResult.success(fileService.mediaInfo(fileName)); |
| | | return ResponseResult.success("图片正在加载"); |
| | | } |
| | | |
| | | @GetMapping("/{workspace_id}/files/{job_id}") |