默认压缩省市区JSON数据

This commit is contained in:
邹景立 2022-04-16 11:07:06 +08:00
parent c51fba0786
commit de65ab2b66
2 changed files with 2 additions and 14921 deletions

View File

@ -41,7 +41,7 @@ foreach ($items as &$prov) {
$jsonFile = __DIR__ . '/data.json';
$scriptFile = dirname(__DIR__) . '/pcasunzips.js';
$jsonContent = json_encode(array_values($items), JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
$jsonContent = json_encode(array_values($items), JSON_UNESCAPED_UNICODE);
$scriptContent = str_replace('__STRING__', join('#', $data), <<<EOL
/********************************************************
*** 加载脚本文件 ***

File diff suppressed because one or more lines are too long