|
|
|
|
@ -517,21 +517,6 @@ class StudyTourDeclarationParser
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ($groups as &$group) {
|
|
|
|
|
$lastLocation = '';
|
|
|
|
|
foreach ($group['items'] as &$item) {
|
|
|
|
|
if ($item['location'] !== '') {
|
|
|
|
|
$lastLocation = $item['location'];
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if ($lastLocation !== '') {
|
|
|
|
|
$item['location'] = $lastLocation;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
unset($item);
|
|
|
|
|
}
|
|
|
|
|
unset($group);
|
|
|
|
|
|
|
|
|
|
return StudyTourPayload::normalizeRoutePlans($groups);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -897,6 +882,14 @@ class StudyTourDeclarationParser
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (preg_match('/^[\d\s]+人$/u', $line)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (preg_match('/^[\d\-\—-–\s]+$/u', $line) && preg_match('/\d{3,}/', $line)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (self::isWordMetadataLine($line)) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|