|
|
|
@ -1207,13 +1207,13 @@ function age_verify($cardno, $name)
|
|
|
|
|
//根据配置向接口发送身份证号和姓名进行验证
|
|
|
|
|
function age($cardno, $name)
|
|
|
|
|
{
|
|
|
|
|
$host = "http://idcard.market.alicloudapi.com";
|
|
|
|
|
$path = "/lianzhuo/idcard";
|
|
|
|
|
$host = "https://idcardcert.market.alicloudapi.com";
|
|
|
|
|
$path = "/idCardCert";
|
|
|
|
|
$method = "GET";
|
|
|
|
|
$appcode = C('tool_age.appcode');
|
|
|
|
|
$headers = array();
|
|
|
|
|
array_push($headers, "Authorization:APPCODE " . $appcode);
|
|
|
|
|
$querys = "cardno=" . $cardno . "&name=" . $name;
|
|
|
|
|
$querys = "idCard=" . $cardno . "&name=" . $name;
|
|
|
|
|
$bodys = "";
|
|
|
|
|
$url = $host . $path . "?" . $querys;
|
|
|
|
|
$curl = curl_init();
|
|
|
|
|