public function actionDetaildetshow() { $id = $_GET['id']; $itemdetail = new Itemdetails(); $detail = $itemdetail->detailDet($id); $file = new Files(); $filelocation = $file->fileLocation($id); if ($filelocation) { echo '{"success":true,"msg":"请输查询入内容"}'; } else { echo '{"success":true,"msg":"请输查询入内容"}'; } }