This commit is contained in:
zpc 2025-08-23 22:49:25 +08:00
parent 6fb1183c82
commit 249f803231

View File

@ -104,7 +104,7 @@ namespace ZR.ServiceCore.Middleware
{
StatusCode = 200,
ContentType = "application/json",
Value = JsonConvert.SerializeObject(new ApiResult((int)ResultCode.FORBIDDEN, $"你当前没有权限访问,请联系管理员", new { }))
Value = new ApiResult((int)ResultCode.FORBIDDEN, $"你当前没有权限访问,请联系管理员", new { })
};
context.HttpContext.Response.StatusCode = 200;
}