修改省市区

This commit is contained in:
邹景立 2022-05-07 10:36:36 +08:00
parent 55b242211f
commit dfc78fc636
2 changed files with 3 additions and 3 deletions

View File

@ -51,9 +51,9 @@ foreach ($items as &$prov) {
$prov['list'] = array_values($prov['list']);
foreach ($prov['list'] as &$city) {
$city['list'] = array_values($city['list']);
$lines[] = $city['name'] . ',' . join(',', array_column($city['list'], 'name'));
$lines[] = $city['fullname'] . ',' . join(',', array_column($city['list'], 'fullname'));
}
$data[] = $prov['name'] . '$' . join('|', $lines);
$data[] = $prov['fullname'] . '$' . join('|', $lines);
}
$jsonFile = __DIR__ . '/data.json';

File diff suppressed because one or more lines are too long