src/thinkextend/Oauth.php
public static function connect($type, $options = [])
    {
        $class         = '\\thinkextend\\oauth\\driver\\' . ucwords($type);
        self::$handler = new $class($options);
        return self::$handler;
    }
public static function connect($type, $options = [])
    {
        $class         = '\\thinkextend\\oauth\\driver\\' . ucwords($type);
        self::$handler = new $class($options);
        return self::$handler;
    }
连接oauth
@access public
@param string $type  Oauth类型
@param array $options  配置数组
@return object