This commit is contained in:
杨志
2026-02-02 15:20:42 +08:00
parent 272dbcb424
commit 3814246b71

View File

@@ -499,6 +499,10 @@ class CrawlerService
if (mb_strlen($text) < 2 && !preg_match('/^[\x{4e00}-\x{9fa5}A-Za-z0-9]+$/u', $text)) { if (mb_strlen($text) < 2 && !preg_match('/^[\x{4e00}-\x{9fa5}A-Za-z0-9]+$/u', $text)) {
continue; continue;
} }
// 过滤未渲染的 JS 模板(如 ' + data[i]['name'] + ' (' + data[i]['code'] + ')'
if (strpos($text, 'data[') !== false || strpos($text, "' +") !== false || strpos($text, "+ '") !== false) {
continue;
}
$options[] = [ $options[] = [
'value' => $value, 'value' => $value,