x
This commit is contained in:
parent
c30184eafd
commit
1450562019
@ -60,7 +60,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/cdle/xdd/main/conf/" + name).Response()
|
r, err := httplib.Get(GhProxy + "https://raw.githubusercontent.com/cdle/xdd/main/conf/demo_" + name).Response()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
io.Copy(f, r.Body)
|
io.Copy(f, r.Body)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user