[优化] 更新kit包

This commit is contained in:
PandaGoAdmin
2022-08-19 21:54:57 +08:00
parent cf97d854d8
commit 915bc15bae
14 changed files with 162 additions and 22 deletions

View File

@@ -8,8 +8,6 @@ import (
"path/filepath"
)
var Conf *Config
func InitConfig(configFilePath string) *Config {
// 获取启动参数中,配置文件的绝对路径
path, _ := filepath.Abs(configFilePath)
@@ -22,7 +20,6 @@ func InitConfig(configFilePath string) *Config {
// 校验配置文件内容信息
yc.Valid()
Conf = yc
return yc
}

View File

@@ -15,6 +15,9 @@ type LogFile struct {
// 获取完整路径文件名
func (l *LogFile) GetFilename() string {
var filepath, filename string
if l == nil {
return ""
}
if fp := l.Path; fp == "" {
filepath = "./"
} else {