/** * 获取源文件 * 在转码出问题可用此接口 * @param [type] $id [description] */ public function GET_fileAction($id) { $pid = $this->authPrinter(); if ($url = TaskModel::where('id', intval($id))->where('pri_id', '=', $pid)->get('url')) { $this->response(1, File::source($url)); } else { $this->response(0, '无此文件'); } }