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