lib/adapter/Wind.php
protected function getBlock($text)
    {
        $matches = [];
        $rtv = [];
        // {block ... } ... {/block}
        if (preg_match_all("/\\{block\\s+(.*?)\\}(.*?)\\{\\/block\\}/is", $text, $matches)) {
            $len = count($matches[0]);
            for ($i = 0; $i < $len; $i++) {
                $rtv[$matches[1][$i]] = $matches[2][$i];
            }
        }
        return $rtv;
    }
protected function getBlock($text)
    {
        $matches = [];
        $rtv = [];
        // {block ... } ... {/block}
        if (preg_match_all("/\\{block\\s+(.*?)\\}(.*?)\\{\\/block\\}/is", $text, $matches)) {
            $len = count($matches[0]);
            for ($i = 0; $i < $len; $i++) {
                $rtv[$matches[1][$i]] = $matches[2][$i];
            }
        }
        return $rtv;
    }
获取模板页中的区块
@param $text
@return array