api增加全局异常过滤器

This commit is contained in:
2024-12-28 21:30:49 +08:00
parent f4fb0df3e9
commit bc45dce29e
6 changed files with 28 additions and 3 deletions
@@ -133,11 +133,9 @@ namespace WebAPI.Controllers
try
{
returnData.data = await HSSEData_HSSEService.GetTodayHSSEData_HSSE();
}
catch (Exception ex)
{
returnData.code = 0;
returnData.message = ex.ToString();
}