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