♻️ Refactoring code. 部署失败,错误抛出
This commit is contained in:
1 parent
1ad9097831
commit
cbc584cfb2
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -61,6 +61,6 @@ public class ModelController {
|
||||
|
||||
@PostMapping("/deploy/{id}")
|
||||
public R deploy(@PathVariable("id") String id) {
|
||||
return R.ok(modelService.deploy(id));
|
||||
return modelService.deploy(id) ? R.ok() : R.failed();
|
||||
}
|
||||
}
|
||||
+1
@@ -174,6 +174,7 @@ public class ModelServiceImpl implements ModelService {
|
||||
repositoryService.setProcessDefinitionCategory(processDefinition.getId(), model.getCategory()));
|
||||
} catch (Exception e) {
|
||||
log.error("部署失败,异常", e);
|
||||
return Boolean.FALSE;
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user