style: 修复消息样式

This commit is contained in:
chenchun
2024-08-07 11:12:01 +08:00
parent bb6e9b9e3f
commit 4097244d5b
5 changed files with 70 additions and 68 deletions

View File

@@ -37,6 +37,12 @@ namespace Yi.Framework.Rbac.Application.Services
{
var path = await GetReturnPathAsync(code, isThumbnail);
if (!File.Exists(path))
{
throw new UserFriendlyException("文件不存在",code:"404");
}
var steam = await File.ReadAllBytesAsync(path);
//考虑从路径中获取