Browse Source

add all website support for tajian

master
filesite 6 months ago
parent
commit
d7276af595
  1. 2
      conf/app.php
  2. 3
      plugins/Html.php

2
conf/app.php

@ -69,6 +69,7 @@ $configs = array(
'快手', '快手',
'西瓜视频', '西瓜视频',
'B站', 'B站',
'其它',
), ),
), ),
@ -118,6 +119,7 @@ $configs = array(
'快手' => 'kuaishou', '快手' => 'kuaishou',
'西瓜视频' => 'xigua', '西瓜视频' => 'xigua',
'B站' => 'bilibili', 'B站' => 'bilibili',
'其它' => 'website',
), ),
), ),

3
plugins/Html.php

@ -35,8 +35,9 @@ Class Html {
return mb_substr($string, $start, $length, 'utf-8') . "..."; return mb_substr($string, $start, $length, 'utf-8') . "...";
} }
//默认支持所有网站
public static function getShareVideosPlatform($url) { public static function getShareVideosPlatform($url) {
$platform = '-'; $platform = '其它';
if (preg_match("/douyin\.com/i", $url)) { if (preg_match("/douyin\.com/i", $url)) {
$platform = '抖音'; $platform = '抖音';

Loading…
Cancel
Save