Merge branch 'feature/juhe_sms' of wmtx/sdk into master

身份认证代码修正
master
郑永星 5 years ago committed by Gogs
commit 136b2e41cb

@ -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;

Loading…
Cancel
Save