From d0caeda83d2e1319a190b45d4fa1bf73aeec9e96 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Thu, 2 Sep 2021 11:44:50 +0800 Subject: [PATCH] update --- core/config.go | 2 +- develop/qinglong/conf/demo_config.yaml | 3 +++ develop/qinglong/init.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 develop/qinglong/conf/demo_config.yaml 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("青龙已连接")