采购订单搭建
This commit is contained in:
@@ -41,13 +41,10 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError("系统错误",ex);
|
||||
_logger.LogError(ex,$"系统错误:{ex.Message}");
|
||||
//await _errorHandle.Invoer(context, ex);
|
||||
var statusCode = context.Response.StatusCode;
|
||||
if (ex is ArgumentException)
|
||||
{
|
||||
statusCode = 200;
|
||||
}
|
||||
context.Response.StatusCode = 500;
|
||||
await HandleExceptionAsync(context, statusCode, ex.Message);
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in New Issue
Block a user