浏览代码

回调回复

Gorden 6 月之前
父节点
当前提交
28ebdc3c7d
共有 1 个文件被更改,包括 1 次插入4 次删除
  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'=>"回复失败"]);
         }