From b4048f46bcf3582aa20ea559a521a2c7ad39a392 Mon Sep 17 00:00:00 2001 From: ranbochen Date: Tue, 20 Mar 2018 19:21:19 +0800 Subject: [PATCH] fix wechat issue (#1293) --- config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/config.go b/config/config.go index 99d1b020d5..f6b6bb7680 100644 --- a/config/config.go +++ b/config/config.go @@ -266,6 +266,10 @@ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error { } } for _, wcc := range rcv.WechatConfigs { + if wcc.HTTPConfig == nil { + wcc.HTTPConfig = c.Global.HTTPConfig + } + if wcc.APIURL == "" { if c.Global.WeChatAPIURL == "" { return fmt.Errorf("no global Wechat URL set")