public override void OnActionExecuted(ActionExecutedContext context) {
    if (context.Exception != null) {
        context.Result = new JsonResult(new APIReturn(-1, context.Exception.Message));
    }
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2020-10-23
  • 2021-10-17
  • 2021-09-28
猜你喜欢
  • 2021-12-28
  • 2021-06-19
  • 2021-11-28
  • 2021-08-25
  • 2021-12-31
  • 2021-10-12
相关资源
相似解决方案