Browse Source

回调回复

Gorden 6 months ago
parent
commit
28ebdc3c7d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      app/admin/controller/notify/OrderPayController.php

+ 1 - 4
app/admin/controller/notify/OrderPayController.php

@@ -31,10 +31,7 @@ class OrderPayController
             $config['notify_url'] = getenv('NOTIFY_DOMAIN_ADMIN').'/notify/orderPay/alipay';
             Pay::alipay($config)->success()->send();
             header('Content-type: application/json');
-            echo json_encode([
-                'code' => '200',
-                'msg' => 'success'
-            ]);
+            exit(json_encode(['code' => '200', 'msg' => 'success']));
         }catch (\Exception $e){
             Log::channel('pay')->info("ALIPAY_NOTIFY_REPLY_FAIL", ['msg'=>"回复失败"]);
         }