大量的代码格式化
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 38s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s

This commit is contained in:
SunCheng
2026-01-18 22:25:59 +08:00
parent 9611ff2088
commit 435efbcb90
18 changed files with 200 additions and 226 deletions

View File

@@ -50,9 +50,6 @@ public class BillImportController(
return "文件大小不能超过 10MB".Fail();
}
// 生成唯一文件名
var fileName = $"{type}_{DateTime.Now:yyyyMMddHHmmss}_{Guid.NewGuid():N}{fileExtension}";
// 保存文件
var ok = false;
var message = string.Empty;
@@ -69,6 +66,11 @@ public class BillImportController(
}
}
if (!ok)
{
return message.Fail();
}
return message.Ok();
}
catch (Exception ex)
@@ -77,4 +79,4 @@ public class BillImportController(
return $"文件上传失败: {ex.Message}".Fail();
}
}
}
}