From d7276af595b910726a849b081ade667b48e5e4e6 Mon Sep 17 00:00:00 2001 From: filesite Date: Thu, 16 May 2024 08:38:49 +0800 Subject: [PATCH] add all website support for tajian --- conf/app.php | 2 ++ plugins/Html.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/app.php b/conf/app.php index 49a93f5..398108c 100644 --- a/conf/app.php +++ b/conf/app.php @@ -69,6 +69,7 @@ $configs = array( '快手', '西瓜视频', 'B站', + '其它', ), ), @@ -118,6 +119,7 @@ $configs = array( '快手' => 'kuaishou', '西瓜视频' => 'xigua', 'B站' => 'bilibili', + '其它' => 'website', ), ), diff --git a/plugins/Html.php b/plugins/Html.php index 67cc5a7..d67f778 100644 --- a/plugins/Html.php +++ b/plugins/Html.php @@ -35,8 +35,9 @@ Class Html { return mb_substr($string, $start, $length, 'utf-8') . "..."; } + //默认支持所有网站 public static function getShareVideosPlatform($url) { - $platform = '-'; + $platform = '其它'; if (preg_match("/douyin\.com/i", $url)) { $platform = '抖音';