diff --git a/core/config.go b/core/config.go index 5092918..6d515ac 100644 --- a/core/config.go +++ b/core/config.go @@ -22,7 +22,7 @@ var ExecPath, _ = filepath.Abs(filepath.Dir(os.Args[0])) var Config Yaml func init() { - ReadYaml(ExecPath+"/conf/", &Config, "https://raw.githubusercontent.com/cdle/sillyGirl/main/conf/config.yaml") + ReadYaml(ExecPath+"/conf/", &Config, "https://raw.githubusercontent.com/cdle/sillyGirl/main/conf/demo_config.yaml") InitReplies() initToHandleMessage() } diff --git a/develop/qinglong/conf/demo_config.yaml b/develop/qinglong/conf/demo_config.yaml new file mode 100644 index 0000000..7d49627 --- /dev/null +++ b/develop/qinglong/conf/demo_config.yaml @@ -0,0 +1,3 @@ +host: http://127.0.0.1:5700 +client_id: +client_secret: \ No newline at end of file diff --git a/develop/qinglong/init.go b/develop/qinglong/init.go index 5ed6f0d..1ae9e3c 100644 --- a/develop/qinglong/init.go +++ b/develop/qinglong/init.go @@ -31,7 +31,7 @@ var DELETE = "DELETE" var ENVS = "envs" func init() { - core.ReadYaml(core.ExecPath+"/develop/qinglong/conf/", &Config, "https://raw.githubusercontent.com/cdle/sillyGirl/main/develop/qinglong/conf/config.yaml") + core.ReadYaml(core.ExecPath+"/develop/qinglong/conf/", &Config, "https://raw.githubusercontent.com/cdle/sillyGirl/main/develop/qinglong/conf/demo_config.yaml") _, err := getToken() if err == nil { logs.Info("青龙已连接")