修改导出链接拼接

This commit is contained in:
lzh 2025-10-20 14:34:09 +08:00
parent ad089ca1aa
commit 88d1a021cb

View File

@ -297,7 +297,7 @@ func BundleExport(ctx *gin.Context) {
scheme = "http"
}
var exportUrl string = fmt.Sprintf("%s:%s/api/fiee/static/%s", scheme, ctx.Request.Host, strings.Replace(filePath, "./runtime/", "", 1))
var exportUrl string = fmt.Sprintf("%s://%s/api/fiee/static/%s", scheme, ctx.Request.Host, strings.Replace(filePath, "./runtime/", "", 1))
service.Success(ctx, gin.H{
"url": exportUrl,
})