diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 5ddc4bcf..ebb006f4 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -1326,6 +1326,21 @@ class Index extends CI_Controller { $this->load->view('n-footer'); } + /** + * 查找webhooks记录 + * @author LYT + */ + public function note_wb_list() { + $this->permission->is_admin(true); + $data = array(); + $data['date'] = $this->input->get('date'); + empty($data['date']) ? $data['date'] = date('Y-m-d') : false; + $data['notelist'] = $this->Note_model->notewebhooks(200); + $this->load->view('n-header', $data); + $this->load->view('note_list'); + $this->load->view('n-footer'); + } + /** * 按账户查找 * @author LYT diff --git a/webht/third_party/paypal/models/note_model.php b/webht/third_party/paypal/models/note_model.php index adbd8a71..19b6d014 100644 --- a/webht/third_party/paypal/models/note_model.php +++ b/webht/third_party/paypal/models/note_model.php @@ -73,6 +73,16 @@ class Note_model extends CI_Model { return $this->get_list(); } + public function notewebhooks($topnum = 2) { + $this->init(); + $this->topnum = $topnum; + $sql = " AND (SUBSTRING(pn_memo, 8, 3) ='WH-' ) "; + $this->pn_send = $sql; + // $this->orderby=" ORDER BY pn_payment_date DESC, pn.pn_sn ASC "; + $this->orderby=" ORDER BY CASE pn.pn_send WHEN 'sendfail' THEN 1 ELSE 2 END ,pn.pn_sn DESC "; + return $this->get_list(); + } + public function noteaccount($topnum = 2, $account = '') { $this->init(); $this->topnum = $topnum; diff --git a/webht/third_party/paypal/views/note_list.php b/webht/third_party/paypal/views/note_list.php index 75863625..c9f1a1d7 100644 --- a/webht/third_party/paypal/views/note_list.php +++ b/webht/third_party/paypal/views/note_list.php @@ -185,6 +185,11 @@ +