From 734a6b9c7f4c836e0b49741b8b108ba91eca9371 Mon Sep 17 00:00:00 2001 From: lyt Date: Wed, 18 Sep 2019 10:51:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PayPal=E7=8A=B6=E6=80=81=3Dcompleted?= =?UTF-8?q?=E7=9A=84=E6=89=80=E6=9C=89=E9=80=80=E6=AC=BE=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/controllers/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 924398b9..1e7dd6d6 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -829,7 +829,7 @@ class Index extends CI_Controller { } //退款状态默认为已经处理,陆燕在退款前手动通知外联了,系统跳过处理 - if (strtolower($item->pn_payment_status) == 'refunded') { + if (strtolower($item->pn_payment_status) == 'refunded' ) { $this->send_refund($item, $handpick, $old_ssje); // $this->Note_model->update_send($item->pn_txn_id, 'send'); continue; @@ -846,6 +846,12 @@ class Index extends CI_Controller { continue; } + // 状态=已完成 退款行为:撤销付款/拒付等 + if (floatval($item->pn_mc_gross) < 0) { + $this->send_refund($item, $handpick, $old_ssje); + continue; + } + //根据note信息找到订单号 $get_order_no = $item->pn_invoice; $orderid_info = $this->analysis_orderid($item->pn_invoice);