0 && $res[0])) { return null; } $host = $res[0]; $host = preg_replace("/https{0,1}:\/\//", "", $host); $host = preg_replace("/\//", "", $host); $res = null; if ($host == 'item.taobao.com') { $res = self::getTaobaoData($url); } //VarDumper::dump($res, 3, 1); } public static function getTaobaoData($url) { $curl = new Curl(); $curl->setOpt(CURLOPT_SSL_VERIFYHOST, false); $curl->setOpt(CURLOPT_SSL_VERIFYPEER, false); $curl->setOpt(CURLOPT_HEADER, ''); $curl->get($url); $res = mb_convert_encoding($curl->response, 'utf-8', 'gbk'); $pattern_list = [ 'title' => "/