You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
851 B
38 lines
851 B
<?php
|
|
|
|
namespace ali\apigateway\api\shlanbowang;
|
|
|
|
use ali\apigateway\api\Base;
|
|
|
|
class Idcard extends Base
|
|
{
|
|
|
|
/**
|
|
* 身份证二要素实名认证
|
|
* @param string $ch_name 姓名
|
|
* @param string $id_num 身份证号
|
|
* @date 2022-04-01
|
|
*/
|
|
public function idCardValidate($ch_name, $id_num)
|
|
{
|
|
//设置域名
|
|
$this->setHost('https://99numa.market.alicloudapi.com');
|
|
|
|
$path = '/dsp-aliyun/api/validate/idcard';
|
|
$result = $this->doPostString($path, '', [
|
|
'chName' => $ch_name,
|
|
'idNum' => $id_num
|
|
]);
|
|
|
|
// 记录日志
|
|
$uid = defined('UID') ? UID : '';
|
|
platformLog([
|
|
'ch_name' => $ch_name,
|
|
'id_num' => $id_num
|
|
], $result, 'aliyun_api_gateway_idcard_validate_' . $uid);
|
|
|
|
return $result;
|
|
}
|
|
|
|
|
|
} |