feat: integrate OA activation workflows and business migration
This commit is contained in:
@@ -332,6 +332,8 @@ func newViper(path string) *viper.Viper {
|
||||
v.SetEnvPrefix("KRA")
|
||||
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_"))
|
||||
v.AutomaticEnv()
|
||||
_ = v.BindEnv("business_oa.url")
|
||||
_ = v.BindEnv("business_oa.key")
|
||||
return v
|
||||
}
|
||||
|
||||
@@ -385,6 +387,7 @@ func cloneConfig(value *Config) *Config {
|
||||
return nil
|
||||
}
|
||||
copied := *value
|
||||
copied.BusinessOA = clonePtr(value.BusinessOA)
|
||||
copied.Server = clonePtr(value.Server)
|
||||
if copied.Server != nil {
|
||||
copied.Server.HTTP = clonePtr(value.Server.HTTP)
|
||||
|
||||
Reference in New Issue
Block a user