src/Gateways/Wechat/Support.php
public function getConfig($key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->config->all();
        }

        if ($this->config->has($key)) {
            return $this->config[$key];
        }

        return $default;
    }
public function getConfig($key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->config->all();
        }

        if ($this->config->has($key)) {
            return $this->config[$key];
        }

        return $default;
    }
public function getConfig ( $ key = null , $ default = null ) { if ( is_null ( $ key ) ) { return $ this -> config -> all ( ) ; } if ( $ this -> config -> has ( $ key ) ) { return $ this -> config [ $ key ] ; } return $ default ; }
Get service config.

@author yansongda <me@yansongda.cn>

@param null|string $key
@param null|mixed  $default

@return mixed|null
Get service config .