<?php require_once 'curl.func.php'; $appkey = 'your_appkey_here';//你的appkey $url = "https://api.jisuapi.com/licenseplate/verify?appkey=$appkey"; $carorg = '';//交管局代号 $lsprefix = '京';//车牌前缀 utf8 $lsnum = '';//车牌 $lstype = '02';//车辆类型 $engineno = '';//发动机号 $frameno = '';//车架号 $post = array('carorg'=>$carorg, 'lsprefix'=>$lsprefix, 'lsnum'=>$lsnum, 'engineno'=>$engineno, 'frameno'=>$frameno, 'lstype'=>$lstype ); $result = curlOpen($url, ['post'=>$post, 'ssl'=>true]); $jsonarr = json_decode($result, true); //exit(var_dump($jsonarr)); if($jsonarr['status'] != 0) { echo $jsonarr['msg']; exit(); } $result = $jsonarr['result']; if($result['verifystatus'] == 0) { echo $result['verifymsg'].' 违章总条数:'.$result['illegalnum'].' 本省违章条数:'.$result['illegalnumlocal'].' 外省违章条数:'.$result['illegalnumother'];//校验成功 } else { echo $result['verifymsg']; }