修改
This commit is contained in:
parent
ce90dde920
commit
fbd8b91013
@ -7,9 +7,7 @@ import (
|
|||||||
"fonchain-fiee/api/account"
|
"fonchain-fiee/api/account"
|
||||||
"fonchain-fiee/api/bundle"
|
"fonchain-fiee/api/bundle"
|
||||||
"fonchain-fiee/api/order"
|
"fonchain-fiee/api/order"
|
||||||
"fonchain-fiee/pkg/config"
|
|
||||||
"fonchain-fiee/pkg/e"
|
"fonchain-fiee/pkg/e"
|
||||||
"fonchain-fiee/pkg/model"
|
|
||||||
"fonchain-fiee/pkg/model/login"
|
"fonchain-fiee/pkg/model/login"
|
||||||
"fonchain-fiee/pkg/service"
|
"fonchain-fiee/pkg/service"
|
||||||
"fonchain-fiee/pkg/service/bundle/common"
|
"fonchain-fiee/pkg/service/bundle/common"
|
||||||
@ -411,11 +409,12 @@ func ExportOrderInfo(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var httpType string
|
var httpType string
|
||||||
if config.IsHttps {
|
fmt.Printf("c.Request.RequestURI %+v\n", c.Request.RequestURI)
|
||||||
httpType = model.HttpsType
|
fmt.Printf("c.Request.URL %+v\n", c.Request.URL)
|
||||||
} else {
|
httpType = strings.Split(c.Request.URL.String(), ":")[0]
|
||||||
httpType = model.HttpType
|
|
||||||
}
|
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 = 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)
|
//var exportUrl = fmt.Sprintf("%s%s/%s", httpType, c.Request.Host, dirPath + path)
|
||||||
|
Loading…
Reference in New Issue
Block a user