更换新的地址
This commit is contained in:
parent
1d70e1fa65
commit
403c309125
2
main.go
2
main.go
@ -27,7 +27,7 @@ func main() {
|
||||
})
|
||||
web.Get("/", func(ctx *context.Context) {
|
||||
if models.Config.Theme == "" {
|
||||
models.Config.Theme = models.GhProxy + "https://raw.githubusercontent.com/764763903a/xdd/main/theme/admin.html"
|
||||
models.Config.Theme = models.GhProxy + "https://raw.githubusercontent.com/764763903a/xdd-plus/main/theme/admin.html"
|
||||
}
|
||||
if theme != "" {
|
||||
ctx.WriteString(theme)
|
||||
|
||||
@ -61,7 +61,7 @@ func initConfig() {
|
||||
s, _ := ioutil.ReadAll(f)
|
||||
if len(s) == 0 {
|
||||
logs.Info("下载配置%s", name)
|
||||
r, err := httplib.Get(GhProxy + "https://raw.githubusercontent.com/764763903a/xdd/main/conf/demo_" + name).Response()
|
||||
r, err := httplib.Get(GhProxy + "https://raw.githubusercontent.com/764763903a/xdd-plus/main/conf/demo_" + name).Response()
|
||||
if err == nil {
|
||||
io.Copy(f, r.Body)
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ func initUserAgent() {
|
||||
} else {
|
||||
logs.Info("更新User-Agent")
|
||||
var err error
|
||||
ua, err = httplib.Get(GhProxy + "https://raw.githubusercontent.com/764763903a/xdd/main/ua.txt").String()
|
||||
ua, err = httplib.Get(GhProxy + "https://raw.githubusercontent.com/764763903a/xdd-plus/main/ua.txt").String()
|
||||
if err != nil {
|
||||
logs.Info("更新User-Agent失败")
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@ func initVersion() {
|
||||
version = Config.Version
|
||||
}
|
||||
logs.Info("检查更新" + version)
|
||||
value, err := httplib.Get(GhProxy + "https://raw.githubusercontent.com/764763903a/xdd/main/models/version.go").String()
|
||||
value, err := httplib.Get(GhProxy + "https://raw.githubusercontent.com/764763903a/xdd-plus/main/models/version.go").String()
|
||||
if err != nil {
|
||||
logs.Info("更新版本的失败")
|
||||
} else {
|
||||
|
||||
@ -78,7 +78,7 @@
|
||||
var timer;
|
||||
var qrcode = document.getElementById("qrcode")
|
||||
var loginUrl = ""
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd/main/static/ok.svg";
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd-plus/main/static/ok.svg";
|
||||
var jumpapp = document.getElementById('jumpapp')
|
||||
var hd = document.getElementById("hd")
|
||||
|
||||
|
||||
@ -79,7 +79,7 @@
|
||||
var timer;
|
||||
var qrcode = document.getElementById("qrcode")
|
||||
var loginUrl = ""
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd/main/static/ok.svg";
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd-plus/main/static/ok.svg";
|
||||
var jumpapp = document.getElementById('jumpapp')
|
||||
var hd = document.getElementById("hd")
|
||||
function GetQrCode() {
|
||||
|
||||
@ -90,7 +90,7 @@
|
||||
var timer;
|
||||
var qrcode = document.getElementById("qrcode")
|
||||
var loginUrl = ""
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd/main/static/ok.svg";
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd-plus/main/static/ok.svg";
|
||||
var jumpapp = document.getElementById('jumpapp')
|
||||
var hd = document.getElementById("hd")
|
||||
function showQrcode() {
|
||||
|
||||
@ -91,7 +91,7 @@
|
||||
var timer;
|
||||
var qrcode = document.getElementById("qrcode")
|
||||
var loginUrl = ""
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd/main/static/ok.svg";
|
||||
var success = "https://ghproxy.com/https://raw.githubusercontent.com/764763903a/xdd-plus/main/static/ok.svg";
|
||||
var jumpapp = document.getElementById('jumpapp')
|
||||
var hd = document.getElementById("hd")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user