|
|
|
@ -1225,11 +1225,11 @@ function age_verify($cardno, $name, $user_id = '')
|
|
|
|
|
M('idcard_log', 'tab_')->data($arr)->add();
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
} elseif(isset($date['error_code']) && $date['error_code'] == 210304){
|
|
|
|
|
} elseif(isset($date['error_code']) && $date['error_code'] != 0){
|
|
|
|
|
$arr['status'] = 0;
|
|
|
|
|
M('idcard_log', 'tab_')->data($arr)->add();
|
|
|
|
|
|
|
|
|
|
return 3;
|
|
|
|
|
return 0;
|
|
|
|
|
} else {
|
|
|
|
|
$arr['status'] = -1;
|
|
|
|
|
M('idcard_log', 'tab_')->data($arr)->add();
|
|
|
|
@ -1246,6 +1246,9 @@ function age($cardno, $name, &$info)
|
|
|
|
|
$appcode = "244181f0846541a19e24df409736d3b9";
|
|
|
|
|
$headers = array();
|
|
|
|
|
array_push($headers, "Authorization:APPCODE " . $appcode);
|
|
|
|
|
|
|
|
|
|
$name = urlencode($name);
|
|
|
|
|
|
|
|
|
|
$querys = "idCard={$cardno}&name={$name}";
|
|
|
|
|
$bodys = "";
|
|
|
|
|
$url = $host . $path . "?" . $querys;
|
|
|
|
|