Cert.php 410 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\web\controller;
  3. use think\facade\Session;
  4. use app\web\BaseController;
  5. use app\common\model\Cert as CertModel;
  6. class Cert extends BaseController
  7. {
  8. public function cert()
  9. {
  10. $keywords = input('keywords/s', "");
  11. $cert = CertModel::where('cnumber','=',$keywords)->findOrEmpty()->toArray();
  12. return view('cert/cert', [
  13. 'keywords' => $keywords,
  14. 'cert' => $cert
  15. ]);
  16. }
  17. }