middlewares/auth/auth.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
middlewares/auth/auth.go
@@ -1,11 +1,11 @@ package auth import ( "fmt" "github.com/gin-gonic/gin" "net/http" "strings" "webserver/extend/config" "webserver/extend/logger" ) const ( @@ -46,7 +46,7 @@ imgUrl = imgUrl[:imgIndx-1] } } fmt.Println("imgUrl+tmpPath:", imgUrl+tmpPath) logger.Debug("imgUrl+tmpPath:", imgUrl+tmpPath) c.Header("Access-Control-Allow-Origin","*") c.Redirect(http.StatusMovedPermanently, imgUrl+tmpPath) return