Browse Source

修改模型不准返回状态码

pull/7/head
fanshuai 1 year ago
parent
commit
711fa9dff2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/model/ModelsController.java

+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/controller/model/ModelsController.java View File

@@ -191,7 +191,7 @@ public class ModelsController {
*/
@GetMapping("/download_model")
@ApiOperation(value = "下载模型", notes = "根据模型版本表id下载模型文件。")
public ResponseEntity<InputStreamResource> downloadModels(@RequestParam("models_version_id") Integer models_version_id) {
public ResponseEntity<InputStreamResource> downloadModels(@RequestParam("models_version_id") Integer models_version_id) throws Exception {
return modelsService.downloadModels(models_version_id);
}



Loading…
Cancel
Save