Compare commits
No commits in common. "5ce9a70c97ebc7c904a0fd877c42ad7b9b2860b3" and "9dace756a1032965f808162d4b3a5471cd151602" have entirely different histories.
5ce9a70c97
...
9dace756a1
@ -103,7 +103,7 @@ func NewRouter() *gin.Engine {
|
||||
}
|
||||
|
||||
//静态文件
|
||||
r.StaticFS("/api/static", http.Dir("./runtime"))
|
||||
r.StaticFS("/static", http.Dir("./runtime"))
|
||||
r.NoRoute(func(c *gin.Context) {
|
||||
c.JSON(http.StatusNotFound, gin.H{
|
||||
"status": 1,
|
||||
|
@ -426,7 +426,7 @@ func ExportOrderInfo(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
var exportUrl = strings.Replace(strings.Replace(filePath, ".", fmt.Sprintf("%s://%s", httpType, c.Request.Host), 1), "runtime", "api/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)
|
||||
fmt.Println("exportUrl : ", exportUrl)
|
||||
service.Success(c, &bundleModel.ExportResponse{ExportUrl: exportUrl})
|
||||
|
Loading…
Reference in New Issue
Block a user