This commit is contained in:
walkor 2022-12-11 22:26:15 +08:00
parent c42d7e5c0e
commit b37f360295

View File

@ -835,6 +835,8 @@ EOF;
} }
} }
$api_result .= "\napiResults[\"$field\"] = " . json_encode($options, JSON_UNESCAPED_UNICODE) . ";"; $api_result .= "\napiResults[\"$field\"] = " . json_encode($options, JSON_UNESCAPED_UNICODE) . ";";
} else {
$api_result .= "\napiResults[\"$field\"] = [];";
} }
$templet = <<<EOF $templet = <<<EOF