perf: PayPal: 调账记录显示

webht/payment
Lei OT 2 years ago
parent 03fbd1eb5d
commit 1c42250c8b

@ -217,13 +217,15 @@
</ul> </ul>
<?php <?php
foreach ($notelist as $key => $item) { foreach ($notelist as $key => $item) {
$raw_content = json_decode($item->pn_memo);
?> ?>
<ul class="row mail_list"> <ul class="row mail_list">
<li class="col-sm-1 nopadding-L" style="overflow:hidden;word-break: break-all;height: 25px;"><?php echo ($key + 1); ?></li> <li class="col-sm-1 nopadding-L" style="overflow:hidden;word-break: break-all;height: 25px;"><?php echo ($key + 1); ?></li>
<li class="col-sm-6 nopadding-L" style="overflow:hidden;word-break: break-all;height: 25px;"> <li class="col-sm-6 nopadding-L" style="overflow:hidden;word-break: break-all;height: 25px;">
<span class="brand_text <?php echo strtolower(str_replace(" ","",$item->fundsource))."-color"; ?>"><?php echo $item->fundsource; ?></span> <span class="brand_text <?php echo strtolower(str_replace(" ","",$item->fundsource))."-color"; ?>"><?php echo ($item->fundsource=== 'unknown' ? $raw_content->txn_type : $item->fundsource); ?></span>
<a class="seen" target="_blank" href="<?php echo site_url('apps/paypal/index/detail_ht/' . $item->pn_txn_id); ?>"> <a class="seen" target="_blank" href="<?php echo site_url('apps/paypal/index/detail_ht/' . $item->pn_txn_id); ?>">
<?php echo htmlentities($item->pn_invoice) . ' / ' . $item->pn_mc_gross . $item->pn_mc_currency . ' / ' . $item->pn_payer; ?> <?php echo htmlentities($item->pn_invoice) . ' / ' . $item->pn_mc_gross . $item->pn_mc_currency . ' / ' . $item->pn_payer; ?>
@ -250,7 +252,6 @@
<?php <?php
$show_send = ''; $show_send = '';
$class_css = ''; $class_css = '';
$raw_content = json_decode($item->pn_memo);
$show_record = '查看录入状态'; $show_record = '查看录入状态';
if ($item->pn_send == 'send' || substr($item->pn_send, 0, 5) == "send-") { if ($item->pn_send == 'send' || substr($item->pn_send, 0, 5) == "send-") {
$show_send = $item->pn_send . " / " . str_ireplace('completed', '', $item->pn_payment_status); $show_send = $item->pn_send . " / " . str_ireplace('completed', '', $item->pn_payment_status);

Loading…
Cancel
Save