测试修复文件上传 bug

This commit is contained in:
yml2213
2026-06-12 19:48:38 +08:00
parent a615100730
commit 4344b1d07c
4 changed files with 69 additions and 2 deletions
+1
View File
@@ -87,6 +87,7 @@ func (h *Handler) writeObject(c *gin.Context, publicOnly bool) {
}
func writeFileError(c *gin.Context, err error) {
_ = c.Error(err)
switch {
case errors.Is(err, ErrDependencyUnavailable):
response.ServiceUnavailable(c, "文件存储未连接")