From b5c722eb257f99425dfb22bd24195d94b9675ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Wed, 28 Sep 2022 19:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alipay/Aliverify.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/alipay/Aliverify.php b/alipay/Aliverify.php index bd5d7ce..ea2cd3a 100644 --- a/alipay/Aliverify.php +++ b/alipay/Aliverify.php @@ -187,15 +187,15 @@ class Aliverify $aop->postCharset='utf-8'; $aop->format='json'; $aop->alipayrsaPublicKey = $config['alipay2']['public_key']; - $request = new \AlipayUserCertifyOpenCertifyRequest (); + + $request = new \AlipayUserCertifyOpenQueryRequest (); $data['certify_id'] = $certify_id; $tosign=json_encode($data); $request->setBizContent($tosign); - $result = $aop->pageExecute ( $request); + $result = $aop->execute ( $request); $responseNode = str_replace(".", "_", $request->getApiMethodName()) . "_response"; - - $resultCode = $result->$responseNode->code; - if(!empty($resultCode)&&$resultCode == 10000){ + $resultCode = $result->$responseNode->passed; + if($resultCode == 'T'){ return true; } else { return false;