修改
This commit is contained in:
parent
ce90dde920
commit
fbd8b91013
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user