public function test(){ import('ORG.Net.Http'); $filepath = M('Resrecord')->where("recordID='{$recordid}'")->find(); $filename = $filepath['name']; $showname="下载"; Http::download($filename, $showname); }