From f4a0ba69a4f2308a0fe547ca04a744e1b7d7724e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=96=E4=B8=AD=E6=B2=89?= <341936031@qq.com> Date: Thu, 6 May 2021 14:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=92=8C=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=A7=A3=E6=9E=90=E6=96=B0=E7=9A=84=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E5=99=A8=EF=BC=8C=E4=B8=8D=E9=9C=80=E8=A6=81=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/function_feed.php | 12 +++++++++++- upload/source/function/function_share.php | 3 +++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/upload/source/function/function_feed.php b/upload/source/function/function_feed.php index 4b1e476c6..53db1bdf4 100644 --- a/upload/source/function/function_feed.php +++ b/upload/source/function/function_feed.php @@ -96,7 +96,17 @@ function mkfeed($feed, $actors=array()) { $replaces[] = $feed['body_data'][$key]; } } - + + if($feed['body_data']['flashvar']){ + $feed['body_data']['player'] = parseflv($feed['body_data']['data'], '500', '373'); + } + if($feed['body_data']['musicvar']){ + $feed['body_data']['player'] = parseaudio($feed['body_data']['data']); + } + if($feed['body_data']['videovar']){ + $feed['body_data']['player'] = parsemedia('x,500,373', $feed['body_data']['data']); + } + $feed['magic_class'] = ''; if(!empty($feed['body_data']['magic_thunder'])) { $feed['magic_class'] = 'magicthunder'; diff --git a/upload/source/function/function_share.php b/upload/source/function/function_share.php index cc7ef8a20..eb1edcf79 100644 --- a/upload/source/function/function_share.php +++ b/upload/source/function/function_share.php @@ -32,6 +32,9 @@ function mkshare($share) { if($share['body_data']['musicvar']){ $share['body_data']['player'] = parseaudio($share['body_data']['data']); } + if($share['body_data']['videovar']){ + $share['body_data']['player'] = parsemedia('x,500,373',$share['body_data']['data']); + } } $share['body_template'] = str_replace($searchs, $replaces, $share['body_template']); -- Gitee