:recycle:重新设计返回格式,同Ruoyi保持一致

This commit is contained in:
不做码农
2023-09-08 18:39:40 +08:00
parent 70371e92b3
commit 44ef55be00
6 changed files with 36 additions and 17 deletions
+1 -3
View File
@@ -63,9 +63,7 @@ namespace ZR.Admin.WebApi.Filters
{
string msg = $"请求访问[{url}]失败,无法访问系统资源";
//logger.Info(msg);
var r = new ApiResult((int)ResultCode.DENY, msg);
context.Result = new JsonResult(r);
context.Result = new JsonResult(ApiResult.Error(ResultCode.DENY, msg));
}
}
}