From e3cb2abb04f70ac80c53f841b4b6ed5d02de2399 Mon Sep 17 00:00:00 2001 From: yuanzhao <2206582181@qq.com> Date: Fri, 16 Aug 2024 17:15:42 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E5=A6=82=E6=9E=9C=E4=B8=8D=E6=98=AF=20w?= =?UTF-8?q?eb=20=E9=A1=B9=E7=9B=AE,=20=E5=85=81=E8=AE=B8=E6=B2=A1=E6=9C=89?= =?UTF-8?q?.env=20=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bootstrap/providers/config_provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/providers/config_provider.go b/bootstrap/providers/config_provider.go index fdb25a7..68ba9fb 100644 --- a/bootstrap/providers/config_provider.go +++ b/bootstrap/providers/config_provider.go @@ -62,7 +62,7 @@ func (c *ConfigProvider) initFile() { dirs, _ := filepath.Abs(checkDir + "/" + defaultDir) DirEntry, err = os.ReadDir(dirs) if err != nil { - // panic(err) // 如果不是 web 项目, 允许有.env 文件 + // panic(err) // 如果不是 web 项目, 允许没有.env 文件 } // checkDir as root _ = godotenv.Load(checkDir + "/.env")