Skip to content

Commit 1dabe25

Browse files
committed
更新readme
1 parent fcef5d6 commit 1dabe25

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ width="800" height="3">
8484

8585
**赞助商**
8686

87-
[![](https://raw.githubusercontent.com/eryajf/tu/main/img/image_20240730_083723.webp)](https://302.ai/)
87+
[![](https://raw.githubusercontent.com/eryajf/tu/main/img/image_20241113_230334.webp)](https://302.ai/)
8888

8989
> [302.AI](https://302.ai) 是一个汇集全球顶级品牌的 AI 超市,按需付费,零月费,零门槛使用各种类型 AI。
9090
>

config/config.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ type Configuration struct {
8181
Credentials []Credential `yaml:"credentials"`
8282
}
8383

84-
var config *Configuration
85-
var once sync.Once
84+
var (
85+
config *Configuration
86+
once sync.Once
87+
)
8688

8789
// LoadConfig 加载配置
8890
func LoadConfig() *Configuration {
@@ -237,7 +239,6 @@ func LoadConfig() *Configuration {
237239
}
238240
}
239241
}
240-
241242
})
242243

243244
// 一些默认值

0 commit comments

Comments
 (0)