更换新的地址
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) {
|
web.Get("/", func(ctx *context.Context) {
|
||||||
if models.Config.Theme == "" {
|
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 != "" {
|
if theme != "" {
|
||||||
ctx.WriteString(theme)
|
ctx.WriteString(theme)
|
||||||
|
|||||||
@ -61,7 +61,7 @@ func initConfig() {
|
|||||||
s, _ := ioutil.ReadAll(f)
|
s, _ := ioutil.ReadAll(f)
|
||||||
if len(s) == 0 {
|
if len(s) == 0 {
|
||||||
logs.Info("下载配置%s", name)
|
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 {
|
if err == nil {
|
||||||
io.Copy(f, r.Body)
|
io.Copy(f, r.Body)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,7 +25,7 @@ func initUserAgent() {
|
|||||||
} else {
|
} else {
|
||||||
logs.Info("更新User-Agent")
|
logs.Info("更新User-Agent")
|
||||||
var err error
|
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 {
|
if err != nil {
|
||||||
logs.Info("更新User-Agent失败")
|
logs.Info("更新User-Agent失败")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@ func initVersion() {
|
|||||||
version = Config.Version
|
version = Config.Version
|
||||||
}
|
}
|
||||||
logs.Info("检查更新" + 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 {
|
if err != nil {
|
||||||
logs.Info("更新版本的失败")
|
logs.Info("更新版本的失败")
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -78,7 +78,7 @@
|
|||||||
var timer;
|
var timer;
|
||||||
var qrcode = document.getElementById("qrcode")
|
var qrcode = document.getElementById("qrcode")
|
||||||
var loginUrl = ""
|
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 jumpapp = document.getElementById('jumpapp')
|
||||||
var hd = document.getElementById("hd")
|
var hd = document.getElementById("hd")
|
||||||
|
|
||||||
|
|||||||
@ -79,7 +79,7 @@
|
|||||||
var timer;
|
var timer;
|
||||||
var qrcode = document.getElementById("qrcode")
|
var qrcode = document.getElementById("qrcode")
|
||||||
var loginUrl = ""
|
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 jumpapp = document.getElementById('jumpapp')
|
||||||
var hd = document.getElementById("hd")
|
var hd = document.getElementById("hd")
|
||||||
function GetQrCode() {
|
function GetQrCode() {
|
||||||
|
|||||||
@ -90,7 +90,7 @@
|
|||||||
var timer;
|
var timer;
|
||||||
var qrcode = document.getElementById("qrcode")
|
var qrcode = document.getElementById("qrcode")
|
||||||
var loginUrl = ""
|
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 jumpapp = document.getElementById('jumpapp')
|
||||||
var hd = document.getElementById("hd")
|
var hd = document.getElementById("hd")
|
||||||
function showQrcode() {
|
function showQrcode() {
|
||||||
|
|||||||
@ -91,7 +91,7 @@
|
|||||||
var timer;
|
var timer;
|
||||||
var qrcode = document.getElementById("qrcode")
|
var qrcode = document.getElementById("qrcode")
|
||||||
var loginUrl = ""
|
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 jumpapp = document.getElementById('jumpapp')
|
||||||
var hd = document.getElementById("hd")
|
var hd = document.getElementById("hd")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user