perf: PayPal: 查询webhooks记录

webht/payment
Lei OT 2 years ago
parent c5286fd666
commit 94de68bcb8

@ -1326,6 +1326,21 @@ class Index extends CI_Controller {
$this->load->view('n-footer'); $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 * @author LYT

@ -73,6 +73,16 @@ class Note_model extends CI_Model {
return $this->get_list(); 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 = '') { public function noteaccount($topnum = 2, $account = '') {
$this->init(); $this->init();
$this->topnum = $topnum; $this->topnum = $topnum;

@ -185,6 +185,11 @@
<!-- Denied, Failed --> <!-- Denied, Failed -->
</ul> </ul>
<hr width="100%" />
<ul class="list-unstyled ">
<li><a href="<?php echo site_url('apps/paypal/index/note_wb_list'); ?>" >webhooks</a></li>
</ul>
<hr width="100%" /> <hr width="100%" />
<div class="well well-sm hidden-xs" > <div class="well well-sm hidden-xs" >
@ -228,7 +233,8 @@
<a href="<?php echo site_url('apps/paypal/index/note_list?search_key='.$item->pn_payer_email); ?>"><?php echo $item->pn_payer_email; ?></a> <a href="<?php echo site_url('apps/paypal/index/note_list?search_key='.$item->pn_payer_email); ?>"><?php echo $item->pn_payer_email; ?></a>
</li> </li>
<li class="col-sm-4 nopadding-L" style="overflow:hidden;word-break: break-all;height: 45px;"> <li class="col-sm-4 nopadding-L" style="overflow:hidden;word-break: break-all;height: 45px;">
<?php echo $item->pn_txn_id; ?> <?php // echo $item->pn_txn_id; ?>
<a href="<?php echo site_url('apps/paypal/index/note_list?search_key='.$item->pn_txn_id); ?>"><?php echo $item->pn_txn_id; ?></a>
<div> <div>
<span> <span>
<?php if ($item->parent_txn_id) { ?> <?php if ($item->parent_txn_id) { ?>

Loading…
Cancel
Save