api增加全局异常过滤器
This commit is contained in:
@@ -167,6 +167,6 @@ namespace WebAPI.Controllers
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user