From fbd8b91013043784c4f4f818c06830ba2e5ad955 Mon Sep 17 00:00:00 2001 From: jhc Date: Fri, 9 May 2025 16:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/bundle/bundleOrder.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkg/service/bundle/bundleOrder.go b/pkg/service/bundle/bundleOrder.go index 77a3e8c..6c9e342 100644 --- a/pkg/service/bundle/bundleOrder.go +++ b/pkg/service/bundle/bundleOrder.go @@ -7,9 +7,7 @@ import ( "fonchain-fiee/api/account" "fonchain-fiee/api/bundle" "fonchain-fiee/api/order" - "fonchain-fiee/pkg/config" "fonchain-fiee/pkg/e" - "fonchain-fiee/pkg/model" "fonchain-fiee/pkg/model/login" "fonchain-fiee/pkg/service" "fonchain-fiee/pkg/service/bundle/common" @@ -411,11 +409,12 @@ func ExportOrderInfo(c *gin.Context) { } var httpType string - if config.IsHttps { - httpType = model.HttpsType - } else { - httpType = model.HttpType - } + fmt.Printf("c.Request.RequestURI %+v\n", c.Request.RequestURI) + fmt.Printf("c.Request.URL %+v\n", c.Request.URL) + httpType = strings.Split(c.Request.URL.String(), ":")[0] + + fmt.Println(httpType) + fmt.Println(filePath) var exportUrl = strings.Replace(strings.Replace(filePath, ".", fmt.Sprintf("%s%s", httpType, c.Request.Host), 1), "runtime", "static", 1) //var exportUrl = fmt.Sprintf("%s%s/%s", httpType, c.Request.Host, dirPath + path)