初始化

This commit is contained in:
2026-05-26 15:57:55 +08:00
parent 4efab9dceb
commit c47f12a740
20 changed files with 270 additions and 34129 deletions
+2 -9
View File
@@ -2,10 +2,8 @@ package fileApi
import (
"stat/common/file"
"stat/common/log"
"stat/common/stdLog"
"stat/statg"
"strings"
"github.com/gin-gonic/gin"
)
@@ -32,13 +30,8 @@ func FileUpload(ctx *gin.Context) {
})
if err != nil {
stdLog.ServerJSON(ctx, stdLog.Failure, err.Error())
} else {
if !strings.HasPrefix(data, "v2/") {
data = "v2/" + data
}
log.Error("file upload", log.Any("url", statg.Conf.ProxyUrl.FileRes), log.Any("path", data))
stdLog.ServerJSON(ctx, stdLog.Success, data)
}
stdLog.ServerJSON(ctx, stdLog.Success, data)
return
}