From 9f6683592cc569655ae3c77d4d694f76353be5b4 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Wed, 9 Mar 2022 02:40:29 +0800 Subject: [PATCH] update: fix alipay f2f sdk --- app/Payments/AlipayF2F.php | 1 + config/app.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Payments/AlipayF2F.php b/app/Payments/AlipayF2F.php index 1893ff43..73218cf8 100644 --- a/app/Payments/AlipayF2F.php +++ b/app/Payments/AlipayF2F.php @@ -58,6 +58,7 @@ class AlipayF2F { public function notify($params) { + if ($params['trade_status'] !== 'TRADE_SUCCESS') return false; $gateway = new \Library\AlipayF2F(); $gateway->setAppId($this->config['app_id']); $gateway->setPrivateKey($this->config['private_key']); // 可以是路径,也可以是密钥内容 diff --git a/config/app.php b/config/app.php index 969fce26..450f032c 100755 --- a/config/app.php +++ b/config/app.php @@ -237,5 +237,5 @@ return [ | The only modification by laravel config | */ - 'version' => '1.5.5.1646749167674' + 'version' => '1.5.5.1646764814759' ];