|
|
@ -589,17 +589,24 @@ type usualConfig struct {
|
|
|
|
} `yaml:"minio"`
|
|
|
|
} `yaml:"minio"`
|
|
|
|
} `yaml:"credential"`
|
|
|
|
} `yaml:"credential"`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Secret string `yaml:"secret"`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tokenpolicy struct {
|
|
|
|
|
|
|
|
AccessSecret string `yaml:"accessSecret"`
|
|
|
|
|
|
|
|
AccessExpire int64 `yaml:"accessExpire"`
|
|
|
|
|
|
|
|
} `yaml:"tokenpolicy"`
|
|
|
|
|
|
|
|
|
|
|
|
Messageverify struct {
|
|
|
|
Messageverify struct {
|
|
|
|
FriendVerify bool `yaml:"friendVerify"`
|
|
|
|
FriendVerify bool `yaml:"friendVerify"`
|
|
|
|
}
|
|
|
|
} `yaml:"messageverify"`
|
|
|
|
|
|
|
|
|
|
|
|
Push struct {
|
|
|
|
Push struct {
|
|
|
|
Getui struct {
|
|
|
|
Getui struct {
|
|
|
|
MasterSecret string `yaml:"masterSecret"`
|
|
|
|
MasterSecret string `yaml:"masterSecret"`
|
|
|
|
AppKey string `yaml:"appKey"`
|
|
|
|
AppKey string `yaml:"appKey"`
|
|
|
|
Enable bool `yaml:"enable"`
|
|
|
|
Enable bool `yaml:"enable"`
|
|
|
|
}
|
|
|
|
} `yaml:"getui"`
|
|
|
|
}
|
|
|
|
} `yaml:"push"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var UsualConfig usualConfig
|
|
|
|
var UsualConfig usualConfig
|
|
|
@ -697,4 +704,15 @@ func init() {
|
|
|
|
Config.Push.Getui.Enable = &UsualConfig.Push.Getui.Enable
|
|
|
|
Config.Push.Getui.Enable = &UsualConfig.Push.Getui.Enable
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if Config.Secret == "" {
|
|
|
|
|
|
|
|
Config.Secret = UsualConfig.Secret
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if Config.TokenPolicy.AccessExpire == 0 {
|
|
|
|
|
|
|
|
Config.TokenPolicy.AccessExpire = UsualConfig.Tokenpolicy.AccessExpire
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if Config.TokenPolicy.AccessSecret == "" {
|
|
|
|
|
|
|
|
Config.TokenPolicy.AccessSecret = UsualConfig.Tokenpolicy.AccessSecret
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|