request->param("certificate_number"); $certificateService = new CertificateService(); if ($certificateService->checkCertificate($certificate_number)) { $certificate_info = $certificateService->getCertificateToNumber($certificate_number); $result['code'] = 200; $result['data'] = $certificate_info; $result['msg'] = "验证成功"; return json($result); } $this->error("验证失败"); } }