实名认证

This commit is contained in:
“wanyongkang”
2022-09-28 19:26:20 +08:00
parent b5c722eb25
commit 7077cb90b9

View File

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