/** * @name 读取生成日志 * @url http://www.baidu.com */ final function task_log() { if (empty($_POST) || empty($_POST['doc_path'])) { echo json_encode(array('msg' => '参数错误')); die; } require_once BASEPATH . 'libraries/doc/doc.php'; $obj = new Doc(); echo $obj->getTaskLog($_POST['doc_path']); }