From e9a23864e839d9a206e1585fe889b06d8d9282a3 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Fri, 24 Feb 2023 22:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ThinkPHP/Library/Org/SumaPay/Api.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ThinkPHP/Library/Org/SumaPay/Api.class.php b/ThinkPHP/Library/Org/SumaPay/Api.class.php index 632ff9fe..323cfca0 100644 --- a/ThinkPHP/Library/Org/SumaPay/Api.class.php +++ b/ThinkPHP/Library/Org/SumaPay/Api.class.php @@ -26,9 +26,9 @@ class Api public static function h5Pay($orderNumber, $amount, $notifyUrl, $backUrl, $payType, $body, $clientIp) { $request = null; if ($payType == self::TYPE_WECHAT_S || $payType == self::TYPE_WECHAT_P) { - $request = new H5payRequest(Config::get('merchantCode'), Config::get('totalBizType'), Config::get('secretKey')); - } else { $request = new WxH5payRequest(Config::get('merchantCode'), Config::get('totalBizType'), Config::get('secretKey')); + } else { + $request = new H5payRequest(Config::get('merchantCode'), Config::get('totalBizType'), Config::get('secretKey')); } $request->setParams([ 'requestType' => $payType, @@ -40,7 +40,7 @@ class Api 'noticeUrl' => $notifyUrl, 'passThrough' => '', 'terminalIp' => $clientIp, - // 'backUrl' => $backUrl, + 'backUrl' => $backUrl, 'productId' => 'AMOUNT', 'productName' => $body, 'fund' => $amount,