1, statusInfo => '没有同步的字体名!' )); return; } $count = 0; if (empty($encode) || $encode === 'base64') { foreach (explode(',', $fontType) as $type) { if (!empty($_POST[$type])) { writeFile($_POST[$type], $fontName.'.'.$type); $count++; } } } callback(array( status => 0, statusInfo => 'sync '.$count.'font files.' )); } main();