Browse Source

更新readme

eryajf 4 months ago
parent
commit
1dabe25e95
2 changed files with 5 additions and 4 deletions
  1. 1 1
      README.md
  2. 4 3
      config/config.go

+ 1 - 1
README.md

@@ -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。
 >

+ 4 - 3
config/config.go

@@ -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 {
 				}
 			}
 		}
-
 	})
 
 	// 一些默认值