k8s version update

This commit is contained in:
wangchuxiao 2022-11-11 15:18:04 +08:00
parent 15df8e0a08
commit d6e14eafef
3 changed files with 8 additions and 1 deletions

View File

@ -225,7 +225,7 @@ push:
pushIntent: "intent:#Intent;component=io.openim.app.enterprisechat/io.openim.app.enterprisechat.MainActivity;end" pushIntent: "intent:#Intent;component=io.openim.app.enterprisechat/io.openim.app.enterprisechat.MainActivity;end"
enable: false # true or false (bool) enable: false # true or false (bool)
getui: #个推推送 getui: #个推推送
pushUrl: "https://restapi.getui.com/v2/$appId" pushUrl:
masterSecret: "" masterSecret: ""
appKey: "" appKey: ""
intent: "" intent: ""

View File

@ -35,6 +35,7 @@ messageverify:
push: push:
getui: #个推推送 getui: #个推推送
pushUrl: "https://restapi.getui.com/v2/$appId"
masterSecret: "" masterSecret: ""
appKey: "" appKey: ""
enable: false enable: false

View File

@ -602,6 +602,7 @@ type usualConfig struct {
Push struct { Push struct {
Getui struct { Getui struct {
PushUrl string `yaml:"pushUrl"`
MasterSecret string `yaml:"masterSecret"` MasterSecret string `yaml:"masterSecret"`
AppKey string `yaml:"appKey"` AppKey string `yaml:"appKey"`
Enable bool `yaml:"enable"` Enable bool `yaml:"enable"`
@ -698,8 +699,13 @@ func init() {
if Config.Push.Getui.MasterSecret == "" { if Config.Push.Getui.MasterSecret == "" {
Config.Push.Getui.MasterSecret = UsualConfig.Push.Getui.MasterSecret Config.Push.Getui.MasterSecret = UsualConfig.Push.Getui.MasterSecret
}
if Config.Push.Getui.AppKey == "" {
Config.Push.Getui.AppKey = UsualConfig.Push.Getui.AppKey Config.Push.Getui.AppKey = UsualConfig.Push.Getui.AppKey
} }
if Config.Push.Getui.PushUrl == "" {
Config.Push.Getui.PushUrl = UsualConfig.Push.Getui.PushUrl
}
if Config.Push.Getui.Enable == nil { if Config.Push.Getui.Enable == nil {
Config.Push.Getui.Enable = &UsualConfig.Push.Getui.Enable Config.Push.Getui.Enable = &UsualConfig.Push.Getui.Enable
} }