h
This commit is contained in:
@@ -1962,6 +1962,22 @@ class SiteStyle
|
||||
$arrCommon = is_file($baseFilele . 'tags.php') ? require $baseFilele . 'tags.php' : [];
|
||||
$arrTipPool = is_file($baseFilele . 'tip.php') ? require $baseFilele . 'tip.php' : [];
|
||||
|
||||
// ===== 统一 tags 结构(防 Array to string conversion)=====
|
||||
$arrCommonRaw = $arrCommon;
|
||||
$arrCommon = [];
|
||||
foreach ($arrCommonRaw as $it) {
|
||||
if (is_string($it)) {
|
||||
$arrCommon[] = $it;
|
||||
} elseif (is_array($it)) {
|
||||
if (isset($it['tag']) && is_string($it['tag'])) {
|
||||
$arrCommon[] = $it['tag'];
|
||||
} elseif (isset($it['text']) && is_string($it['text'])) {
|
||||
$arrCommon[] = $it['text'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ========== A:一句话看点(更像真实编辑;按“是否有主演/导演/地区”选择可用句式) ==========
|
||||
|
||||
|
||||
@@ -158,6 +158,7 @@ if ($strTmpCode == 'videoGpt1') {
|
||||
case 'play':
|
||||
$register($route, 'video/getVideoPlayUrl.html', [
|
||||
'intVId' => '\d+',
|
||||
'strPinyin' => '[\w-]+',
|
||||
'intPlayIndex' => '\d+'
|
||||
]);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user