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)