fix wechat issue (#1293)
This commit is contained in:
parent
bd04da5480
commit
b4048f46bc
|
@ -266,6 +266,10 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, wcc := range rcv.WechatConfigs {
|
for _, wcc := range rcv.WechatConfigs {
|
||||||
|
if wcc.HTTPConfig == nil {
|
||||||
|
wcc.HTTPConfig = c.Global.HTTPConfig
|
||||||
|
}
|
||||||
|
|
||||||
if wcc.APIURL == "" {
|
if wcc.APIURL == "" {
|
||||||
if c.Global.WeChatAPIURL == "" {
|
if c.Global.WeChatAPIURL == "" {
|
||||||
return fmt.Errorf("no global Wechat URL set")
|
return fmt.Errorf("no global Wechat URL set")
|
||||||
|
|
Loading…
Reference in New Issue