fix weixin config
This commit is contained in:
parent
dd9adf8a04
commit
6ea9636861
2 changed files with 4 additions and 2 deletions
|
|
@ -1546,7 +1546,7 @@ func applySecurityConfig(cfg *Config, sec *SecurityConfig) error {
|
||||||
|
|
||||||
// Handle Weixin token
|
// Handle Weixin token
|
||||||
if sec.Channels.Weixin != nil && sec.Channels.Weixin.Token != "" {
|
if sec.Channels.Weixin != nil && sec.Channels.Weixin.Token != "" {
|
||||||
cfg.Channels.Discord.token = sec.Channels.Discord.Token
|
cfg.Channels.Weixin.token = sec.Channels.Weixin.Token
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle DingTalk client secret
|
// Handle DingTalk client secret
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,9 @@ func NewProvider(ctx context.Context, opts ...Option) (*Provider, error) {
|
||||||
|
|
||||||
// Validate region is set - required for Bedrock request signing
|
// Validate region is set - required for Bedrock request signing
|
||||||
if cfg.Region == "" {
|
if cfg.Region == "" {
|
||||||
return nil, fmt.Errorf("AWS region not configured: set AWS_REGION, AWS_DEFAULT_REGION, or use WithRegion option")
|
return nil, fmt.Errorf(
|
||||||
|
"AWS region not configured: set AWS_REGION, AWS_DEFAULT_REGION, or use WithRegion option",
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build client options
|
// Build client options
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue