From 3614c4b7c2eed894b4136fa6b4d757ec4f37d3f5 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 3 Nov 2025 09:40:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PayPal=20=E8=B4=B9=E7=8E=87=E6=8F=90?= =?UTF-8?q?=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pay/controllers/PaymentService.php | 2 +- .../third_party/pay/controllers/WxpayService.php | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/webht/third_party/pay/controllers/PaymentService.php b/webht/third_party/pay/controllers/PaymentService.php index 0f507d13..f01b1bff 100644 --- a/webht/third_party/pay/controllers/PaymentService.php +++ b/webht/third_party/pay/controllers/PaymentService.php @@ -869,7 +869,7 @@ class PaymentService extends CI_Controller { **/ public function check_paypal_rate($notify = '1') { - if (date('d') !== '2') { + if (date('d') !== '02') { echo '不是2号,不检查'; return false; } diff --git a/webht/third_party/pay/controllers/WxpayService.php b/webht/third_party/pay/controllers/WxpayService.php index 2764d30a..6f899c56 100644 --- a/webht/third_party/pay/controllers/WxpayService.php +++ b/webht/third_party/pay/controllers/WxpayService.php @@ -107,7 +107,7 @@ class WxpayService extends CI_Controller { /** * 每月2号: 检查PayPal的费率 */ - if (date('d')==='2') { + if (date('d')==='02') { async_curl('https://www.mycht.cn/webht.php/apps/pay/paymentservice/check_paypal_rate'); } return; @@ -225,6 +225,20 @@ class WxpayService extends CI_Controller { return; } + public function refund() { + $this->load->model('WxpayRefundContentBuilder', 'refund_builder'); + $refund_payload = $this->input->post(); + + $res = array( + "errcode" => "0", + "errmsg" => "", + "result" => "{}", + ); + $transaction_id = ''; + $this->query_builder->set_transaction_id($transaction_id); + + } + public function response_to_wx($response_arr) { $response_body = to_xml($response_arr);