Skip to content

Commit

Permalink
Test4 (#40)
Browse files Browse the repository at this point in the history
* Compiled main.go and pushed changes

* test

* 适配了频道私聊,用bolt数据库取代ini

* 适配了nonebot2

* add license

* add a lot

* trss support

* add action

* add action

* add action

* fixbug

* add wss

* bugfix

* fix action

* fix action again

* fa

* fix

* add a lot

* add ws server token

* bugifx

* fixat

* bugfix

* bugfix

* test

* test2

* add url service

* add url service

* bugfix

* fix

* fix

* fix

* bug fix

* fix

* test

* add webui

* add image_compress

* bug fix

* fix cq code

* fixbug

* bugfix

* bugfix

* bugfix

* bugfix

* bugfix
  • Loading branch information
Hoshinonyaruko authored Nov 3, 2023
1 parent 54a676c commit 076ecf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ func getMissingSettingsByReflection(currentConfig, defaultConfig *Config) (map[s
for i := 0; i < currentVal.NumField(); i++ {
field := currentVal.Type().Field(i)
yamlTag := field.Tag.Get("yaml")
if yamlTag == "" {
continue
if yamlTag == "" || field.Type.Kind() == reflect.Int || field.Type.Kind() == reflect.Bool {
continue // 跳过没有yaml标签的字段,或者字段类型为int或bool
}
yamlKeyName := strings.SplitN(yamlTag, ",", 2)[0]
if isZeroOfUnderlyingType(currentVal.Field(i).Interface()) && !isZeroOfUnderlyingType(defaultVal.Field(i).Interface()) {
Expand Down

0 comments on commit 076ecf2

Please sign in to comment.