From 4bb504224e005191a57b68ed5c0da74d8f6f401a Mon Sep 17 00:00:00 2001 From: lyt Date: Thu, 3 Oct 2019 00:47:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20PayPal=E8=8E=B7=E5=8F=96=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/controllers/index.php | 6 +++--- webht/third_party/paypal/models/note_model.php | 2 +- webht/third_party/paypal/views/note_list.php | 9 +++++---- webht/third_party/paypal/views/note_setting.php | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 343f558a..a8d36996 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -1262,13 +1262,13 @@ class Index extends CI_Controller { } //获取note详情,修改各项数据 - public function note_modal($pn_txn_id, $pn_invoice = false) { + public function note_modal($pn_txn_id, $pn_id=false, $pn_invoice=false) { $this->permission->is_admin(true); $data = array(); - $data['pn_invoice'] = $pn_invoice; if (!empty($pn_txn_id)) { - $data['note'] = $this->Note_model->note($pn_txn_id); + $data['note'] = $this->Note_model->note($pn_txn_id, $pn_id); if (!empty($data['note'])) { + $data['pn_invoice'] = $data['note']->pn_invoice; if (!empty($pn_invoice)) { $orderid_info = $this->analysis_orderid($pn_invoice); } else { diff --git a/webht/third_party/paypal/models/note_model.php b/webht/third_party/paypal/models/note_model.php index c601f348..a893707c 100644 --- a/webht/third_party/paypal/models/note_model.php +++ b/webht/third_party/paypal/models/note_model.php @@ -56,7 +56,7 @@ class Note_model extends CI_Model { $this->init(); $this->topnum=1; $this->pn_txn_id=" AND pn.pn_txn_id=".$this->HT->escape($pn_txn_id); - $this->pn_txn_id .= ($pn_sn===NULL) ? "" : " AND pn.pn_sn=".$this->HT->escape($pn_sn); + $this->pn_txn_id .= !($pn_sn) ? "" : " AND pn.pn_sn=".$this->HT->escape($pn_sn); $this->orderby=" ORDER BY pn_payment_date, pn_payer desc "; return $this->get_list(); } diff --git a/webht/third_party/paypal/views/note_list.php b/webht/third_party/paypal/views/note_list.php index 5e0b7128..5ff8bda8 100644 --- a/webht/third_party/paypal/views/note_list.php +++ b/webht/third_party/paypal/views/note_list.php @@ -208,6 +208,7 @@ echo "