From 7aac50850d71b69636986cf6a3b2d81da0f07d1b Mon Sep 17 00:00:00 2001 From: lyt Date: Wed, 30 Oct 2019 11:35:55 +0800 Subject: [PATCH] feat:wxpay send --- webht/third_party/pay/controllers/AlipayTradeService.php | 2 ++ webht/third_party/pay/controllers/WxpayService.php | 1 + 2 files changed, 3 insertions(+) diff --git a/webht/third_party/pay/controllers/AlipayTradeService.php b/webht/third_party/pay/controllers/AlipayTradeService.php index 7ee6a3d9..5df1530b 100644 --- a/webht/third_party/pay/controllers/AlipayTradeService.php +++ b/webht/third_party/pay/controllers/AlipayTradeService.php @@ -41,6 +41,7 @@ class AlipayTradeService extends CI_Controller $this->load->library('alipay/AopSdk'); // real URL $this->config->load('alipay'); + $this->config->load('wxpay', true); // test URL // $this->config->load('dev_alipay'); @@ -521,6 +522,7 @@ class AlipayTradeService extends CI_Controller if (empty($pn_txn_id)) { echo "done. recorde count:".$int; } + async_curl($this->config->item('send_notify_url', 'wxpay')); return; } diff --git a/webht/third_party/pay/controllers/WxpayService.php b/webht/third_party/pay/controllers/WxpayService.php index 60b5b837..b0a95d86 100644 --- a/webht/third_party/pay/controllers/WxpayService.php +++ b/webht/third_party/pay/controllers/WxpayService.php @@ -82,6 +82,7 @@ class WxpayService extends CI_Controller { $response['return_msg'] = 'OK'; } } + async_curl($this->config->item('send_notify_url', 'wxpay')); return $this->response_to_wx($response); }