镜像自地址
https://github.com/astaxie/beego.git
已同步 2025-07-17 18:52:16 +00:00
enhancement code
这个提交包含在:
@@ -20,6 +20,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"fmt"
|
||||
"errors"
|
||||
|
||||
"github.com/astaxie/beego/config"
|
||||
"github.com/astaxie/beego/session"
|
||||
@@ -313,6 +314,11 @@ func LoadAppConfig(configPath string, adapterName string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !utils.FileExists(absConfigPath) {
|
||||
return errors.New(fmt.Sprintf("the target config file: %s don't exist!", configPath))
|
||||
}
|
||||
|
||||
if absConfigPath == AppConfigPath {
|
||||
return nil
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户