实名认证5.0

master
chenzhi 5 years ago
parent c08a01d7e8
commit 250b9ab881

@ -1211,6 +1211,7 @@ function age($cardno, $name)
$path = "/idCardCert"; $path = "/idCardCert";
$method = "GET"; $method = "GET";
$appcode = C('tool_age.appcode'); $appcode = C('tool_age.appcode');
// $appcode = "244181f0846541a19e24df409736d3b9";
$headers = array(); $headers = array();
array_push($headers, "Authorization:APPCODE " . $appcode); array_push($headers, "Authorization:APPCODE " . $appcode);
$querys = "idCard=" . $cardno . "&name=" . $name; $querys = "idCard=" . $cardno . "&name=" . $name;
@ -1234,7 +1235,6 @@ function age($cardno, $name)
$r = json_decode($output, true); $r = json_decode($output, true);
if ($r['status'] == "02") return 0; if ($r['status'] == "02") return 0;
return $r; return $r;
// if (empty($output)) { // if (empty($output)) {
// return -1;//用完 // return -1;//用完

Loading…
Cancel
Save