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' ];