Эх сурвалжийг харах

update: fix alipay f2f sdk

tokumeikoi 3 жил өмнө
parent
commit
9f6683592c

+ 1 - 0
app/Payments/AlipayF2F.php

@@ -58,6 +58,7 @@ class AlipayF2F {
 
 
     public function notify($params)
     public function notify($params)
     {
     {
+        if ($params['trade_status'] !== 'TRADE_SUCCESS') return false;
         $gateway = new \Library\AlipayF2F();
         $gateway = new \Library\AlipayF2F();
         $gateway->setAppId($this->config['app_id']);
         $gateway->setAppId($this->config['app_id']);
         $gateway->setPrivateKey($this->config['private_key']); // 可以是路径,也可以是密钥内容
         $gateway->setPrivateKey($this->config['private_key']); // 可以是路径,也可以是密钥内容

+ 1 - 1
config/app.php

@@ -237,5 +237,5 @@ return [
     | The only modification by laravel config
     | The only modification by laravel config
     |
     |
     */
     */
-    'version' => '1.5.5.1646749167674'
+    'version' => '1.5.5.1646764814759'
 ];
 ];