x
This commit is contained in:
parent
70aa85fe87
commit
e2a6f1856f
@ -46,9 +46,6 @@ var Cdle = false
|
||||
var Config Yaml
|
||||
|
||||
func initConfig() {
|
||||
if ExecPath == "/Users/cdle/Desktop/xdd" || Config.NoAdmin {
|
||||
Cdle = true
|
||||
}
|
||||
confDir := ExecPath + "/conf"
|
||||
if _, err := os.Stat(confDir); err != nil {
|
||||
os.MkdirAll(confDir, os.ModePerm)
|
||||
@ -75,6 +72,9 @@ func initConfig() {
|
||||
if yaml.Unmarshal(content, &Config) != nil {
|
||||
logs.Warn("解析config.yaml出错: %v", err)
|
||||
}
|
||||
if ExecPath == "/Users/cdle/Desktop/xdd" || Config.NoAdmin {
|
||||
Cdle = true
|
||||
}
|
||||
if Config.Master == "" {
|
||||
Config.Master = "xxxx"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user