From 6ef095f47d4823f04a741169cd4a6bbad0c61ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sat, 13 Jan 2024 17:30:32 +0800 Subject: [PATCH] =?UTF-8?q?http=20=E6=94=AF=E4=BB=98=E5=AE=9D=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extends/alipay/Alipay.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extends/alipay/Alipay.php b/extends/alipay/Alipay.php index 952d8e6..c51bb88 100644 --- a/extends/alipay/Alipay.php +++ b/extends/alipay/Alipay.php @@ -2,7 +2,7 @@ /* * @Author: 万永康 * @Date: 2020-10-11 12:32:50 - * @LastEditTime: 2024-01-06 14:34:37 + * @LastEditTime: 2024-01-13 17:26:43 * @LastEditors: “wanyongkang” “937888580@qq.com” * @Description: In User Settings Edit * @FilePath: /phptest/alipay/Alipay.php @@ -191,10 +191,11 @@ class Alipay */ public static function payVerify2($post) { global $config; - $aop = new \AopClient (); + $aop = new \AopClient(); $aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do'; $aop->appId = $config['alipay2']['app_id'];; $aop->rsaPrivateKey = $config['alipay2']['private_key'] ; + $aop->alipayrsaPublicKey = $config['public_key']; $aop->apiVersion = '1.0'; $aop->signType = 'RSA2'; $aop->postCharset='utf-8';