From 4144f6e3f5f280834865dfb4582ea2e9934b893e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=96=E4=B9=A1=E5=90=AF=E7=A8=8B?= Date: Thu, 2 Nov 2017 16:18:19 +0800 Subject: [PATCH] =?UTF-8?q?!124=20=E6=B7=BB=E5=8A=A0=E8=85=BE=E8=AE=AF?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=9A=84=E6=94=AF=E6=8C=81=20Merge=20pull=20?= =?UTF-8?q?request=20!124=20from=20=E4=BB=96=E4=B9=A1=E5=90=AF=E7=A8=8B/ma?= =?UTF-8?q?ster?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/function_discuzcode.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/upload/source/function/function_discuzcode.php b/upload/source/function/function_discuzcode.php index 3a58171..6a9a7ce 100644 --- a/upload/source/function/function_discuzcode.php +++ b/upload/source/function/function_discuzcode.php @@ -667,6 +667,12 @@ function parseflv($url, $width = 0, $height = 0) { $imgurl = trim($image[1]); } } + } elseif(strpos($lowerurl, 'v.qq.com/x/page/') !== FALSE) { + if(preg_match("/https?:\/\/v.qq.com\/x\/page\/([^\/]+)(.html|)/i", $url, $matches)) { + $vid = explode(".html", $matches[1]); + $flv = 'https://imgcache.qq.com/tencentvideo_v1/playerv3/TPout.swf?vid='.$vid[0]; + $iframe = 'https://v.qq.com/iframe/player.html?vid='.$vid[0]; + } } if($flv) { if(!$width && !$height) {