更新readme

This commit is contained in:
eryajf
2024-11-13 23:04:47 +08:00
parent fcef5d62a3
commit 1dabe25e95
2 changed files with 5 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ width="800" height="3">
**赞助商**
[![](https://raw.githubusercontent.com/eryajf/tu/main/img/image_20240730_083723.webp)](https://302.ai/)
[![](https://raw.githubusercontent.com/eryajf/tu/main/img/image_20241113_230334.webp)](https://302.ai/)
> [302.AI](https://302.ai) 是一个汇集全球顶级品牌的 AI 超市,按需付费,零月费,零门槛使用各种类型 AI。
>

View File

@@ -81,8 +81,10 @@ type Configuration struct {
Credentials []Credential `yaml:"credentials"`
}
var config *Configuration
var once sync.Once
var (
config *Configuration
once sync.Once
)
// LoadConfig 加载配置
func LoadConfig() *Configuration {
@@ -237,7 +239,6 @@ func LoadConfig() *Configuration {
}
}
}
})
// 一些默认值