From 3a7d377b91dd8fdd3a34eb7e1226bfe50e46f59c Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Tue, 29 Jun 2021 16:25:37 +0800 Subject: [PATCH] aa --- {deploy => conf}/config.json | 0 controllers/knowledge_upload_controller.go | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {deploy => conf}/config.json (100%) diff --git a/deploy/config.json b/conf/config.json similarity index 100% rename from deploy/config.json rename to conf/config.json diff --git a/controllers/knowledge_upload_controller.go b/controllers/knowledge_upload_controller.go index b201733b7..b17cb5c1e 100644 --- a/controllers/knowledge_upload_controller.go +++ b/controllers/knowledge_upload_controller.go @@ -45,7 +45,7 @@ func (ue *KnowUploadController) SnsUploadImg() { switch op { case "config": - file, err := os.Open("deploy/config.json") + file, err := os.Open("./conf/config.json") if err != nil { fmt.Fprintf(ue.Ctx.ResponseWriter, "打开文件错误 : %v", err) return