实名认证
This commit is contained in:
@@ -182,12 +182,13 @@ class AliverifyPublic
|
|||||||
$aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do';
|
$aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do';
|
||||||
$aop->appId = $config['alipay2']['app_id'];;
|
$aop->appId = $config['alipay2']['app_id'];;
|
||||||
$aop->rsaPrivateKey = $config['alipay2']['private_key'] ;
|
$aop->rsaPrivateKey = $config['alipay2']['private_key'] ;
|
||||||
$aop->format = "json";
|
$aop->apiVersion = '1.0';
|
||||||
$aop->charset= "utf-8";
|
$aop->signType = 'RSA2';
|
||||||
$aop->signType= "RSA2";
|
$aop->postCharset='utf-8';
|
||||||
$aop->alipayrsaPublicKey = $config['alipay2']['public_key'];
|
|
||||||
$aop->format='json';
|
$aop->format='json';
|
||||||
$request = new \AlipayUserCertifyOpenCertifyRequest ();
|
$aop->alipayrsaPublicKey = $config['alipay2']['public_key'];
|
||||||
|
|
||||||
|
$request = new \AlipayUserCertifyOpenQueryRequest ();
|
||||||
$data['certify_id'] = $certify_id;
|
$data['certify_id'] = $certify_id;
|
||||||
$tosign=json_encode($data);
|
$tosign=json_encode($data);
|
||||||
$request->setBizContent($tosign);
|
$request->setBizContent($tosign);
|
||||||
@@ -199,6 +200,12 @@ class AliverifyPublic
|
|||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// $resultCode = $result->$responseNode->passed;
|
||||||
|
// if($resultCode == 'T'){
|
||||||
|
// return true;
|
||||||
|
// } else {
|
||||||
|
// return false;
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user