From ae87135d30e300f631070e42102861266bd6f040 Mon Sep 17 00:00:00 2001 From: yuan_rh <545873205@qq.com> Date: Fri, 27 Nov 2020 10:41:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/config.go b/config/config.go index 127c72e..a63fe73 100644 --- a/config/config.go +++ b/config/config.go @@ -2,6 +2,7 @@ package config import ( "github.com/clod-moon/goconf" + "log" "os" ) @@ -27,6 +28,9 @@ func InitConfig(){ conf := iniconf.InitConfig("../../bin/fts.ini") ServerIpfsUrl = conf.GetValue("url", "ServerIpfsUrl") + if ServerIpfsUrl=="" || len(ServerIpfsUrl)==0{ + log.Panic("请检测文件bin/fts.ini文件缺失或ServerIpfsUrl配置项缺失") + } //log.Print(ServerIpfsUrl) //log.Print(filepath.Abs("./")) LocalWorkSpaceDir=os.Getenv("USERPROFILE")+"\\easycloud"