Commit 67025e08 by lanrion

fixed config blank bug if not config

parent 46c2f71b
...@@ -16,7 +16,10 @@ module WeixinAuthorize ...@@ -16,7 +16,10 @@ module WeixinAuthorize
# 可选配置: RestClient timeout, etc. # 可选配置: RestClient timeout, etc.
# key 必须是符号 # key 必须是符号
def rest_client_options def rest_client_options
config.rest_client_options || {timeout: 2, open_timeout: 3, verify_ssl: true} if config.nil?
return {timeout: 2, open_timeout: 3, verify_ssl: true}
end
config.rest_client_options
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment