as: Download updates from official server for now

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-05-22 18:04:29 +08:00
parent 28db6fc696
commit c16f0c1ef0
12 changed files with 116236 additions and 62 deletions
+8
View File
@@ -6,6 +6,7 @@ import (
"net/http"
"net/url"
"strconv"
"strings"
"time"
"github.com/gin-gonic/gin"
@@ -76,3 +77,10 @@ func Common(ctx *gin.Context) {
ctx.Next()
}
func CommonAs(ctx *gin.Context) {
ep := strings.ReplaceAll(ctx.Request.URL.String(), "/ep3071", "")
ctx.Set("ep", ep)
ctx.Next()
}