Skip to content

Conversation

lyouthzzz
Copy link

No description provided.

@@ -641,9 +635,7 @@ func SetDefault(cfg *Config) *Config {
cfg.AssetRootPath = utils.SetDefault(cfg.AssetRootPath, "", "./public/")
cfg.AssetRootPath = filepath.ToSlash(cfg.AssetRootPath)
cfg.FileUploadEngine.Name = utils.SetDefault(cfg.FileUploadEngine.Name, "", "local")
if !cfg.Env.Valid() {
Copy link
Collaborator

@chenhg5 chenhg5 Jan 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lyouthzzz 可以加个 InValid() 的api。更易读一些。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants