diff --git a/alipay/AliverifyPublic.php b/alipay/AliverifyPublic.php index 11bae61..04b0408 100644 --- a/alipay/AliverifyPublic.php +++ b/alipay/AliverifyPublic.php @@ -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; + // } }