This commit is contained in:
make
2026-01-09 19:21:52 +08:00
parent 90fc16fbc3
commit 20008dbf97
6 changed files with 33 additions and 9 deletions

View File

@@ -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一句话看点更像真实编辑按“是否有主演/导演/地区”选择可用句式) ==========

View File

@@ -158,6 +158,7 @@ if ($strTmpCode == 'videoGpt1') {
case 'play':
$register($route, 'video/getVideoPlayUrl.html', [
'intVId' => '\d+',
'strPinyin' => '[\w-]+',
'intPlayIndex' => '\d+'
]);
break;