webht/payment
Lei OT 6 months ago
parent 5521f2e5cd
commit cbeb85f4e9

@ -54,7 +54,7 @@
</div>
<label class="text-danger">订单号形如: 160414408_B , B商务订单JJ160321052_T,T传统订单请务必加上后缀</label>
<div style='display: none'><?php var_dump($group_accout_info); ?></div>
<div style='display: none'><?php var_dump($order_info); ?></div>
<div style='display: none'><?php // var_dump($order_info); ?></div>
<div>订单详细内容: </div>
<p>
<?php
@ -67,7 +67,7 @@
echo "OPI_Email => $order_info->OPI_Email<br/>";
echo "OPI_Name => $order_info->OPI_Name<br/>";
echo!empty($order_info->COLI_GroupCode) ? "COLI_GroupCode => $order_info->COLI_GroupCode<br/>" : false;
echo!empty($order_info->COLI_OrderDetailText) ? "COLI_OrderDetailText => $order_info->COLI_OrderDetailText\n" : false;
echo!empty($order_info->COLI_OrderDetailText) ? "COLI_OrderDetailText => $order_info->COLI_OrderDetailText" : false;
echo "</pre>";
} else {
echo '找不到目标订单内容';

@ -55,9 +55,12 @@
.text-declined, .text-declined a:not(.btn) {color: #c0192a;}
.text-under_review, .text-under_review a:not(.btn) {color: #ff9900;}
.text-resolved, .text-resolved a:not(.btn) {color: #ff9900;}
.text-paypal_dispute, .text-paypal_dispute a:not(.btn),
.text-customer_dispute_resolved, .text-customer_dispute_resolved a:not(.btn),
.text-customer_dispute_updated, .text-customer_dispute_updated a:not(.btn) {color: #ff9900;}
.text-approved, .text-approved a:not(.btn) {color: #777;}
.text-approved, .text-approved a:not(.btn),
.text-paypal_order, .text-paypal_order a:not(.btn)
{color: #777;}
.flex {display: flex;}
.items-center {align-items: center;}
@ -261,7 +264,8 @@
</div>
<!-- left end -->
<div class=" pay_form_div col-sm-20 col-xs-24" style="min-height:1024px;border-left:1px solid #ddd;">
<table class="table table-bordered table-hover">
<!-- table-bordered -->
<table class="table table-hover">
<thead>
<tr>
<th width="40">#</th>
@ -278,8 +282,13 @@
<tbody>
<?php
foreach ($notelist as $key => $item) {
$row_cls = implode(' ',[
"text-{$item->OPN_transactionResult}",
"text-".str_ireplace('.', '_', strtolower($item->OPN_resultMsg)),
"text-".str_ireplace('.', '_', strtolower($item->OPN_noticeType)),
]);
?>
<tr class="<?php echo $item->OPN_transactionResult !== 'completed' ? "text-{$item->OPN_transactionResult}" : ''; ?> text-<?= str_ireplace('.', '_', strtolower($item->OPN_resultMsg)) ?>">
<tr class="<?php echo $row_cls ?>">
<td><?php echo $key+1; ?></td>
<td>
<span class="brand_text <?php echo strtolower(str_replace(" ","",$item->brand_name))."-color"; ?>"><?php echo $item->brand_name; ?></span>
@ -348,16 +357,21 @@
?>
<?php
if ($item->OPN_transactionResult !== 'completed') {
// declined pending dispute approved
$cls = "text-{$item->OPN_transactionResult}";
$text = strtoupper($item->OPN_transactionResult);
$send_text = $item->OPN_noticeType !== 'pay' ? strtoupper($item->OPN_noticeType) : $item->OPN_resultCode;
echo "<span class={$cls} >{$text}</span><br>";
} elseif ($item->OPN_noticeType !== 'pay') {
$send_text = $item->OPN_noticeType == 'refund' ? strtoupper($item->OPN_transactionResult) : $item->OPN_resultCode;
echo '<span class=text-danger >' . strtoupper($item->OPN_noticeType) . '</span><br>';
// refund
$send_text = $item->OPN_noticeType == 'refund' ? ($item->OPN_noticeSendStatus) : $item->OPN_resultCode;
$_cls = "tag-".$item->OPN_noticeType;
echo "<span class='text-danger {$_cls}' >" . strtoupper($item->OPN_noticeType) . '</span><br>';
} else {
// completed pay
$send_text = ($item->OPN_noticeSendStatus ? $item->OPN_noticeSendStatus : '⏳');
echo '<span class="text-success" >' . strtoupper($item->OPN_transactionResult) . '</span><br>';
$_cls = "tag-".$item->OPN_transactionResult;
echo "<span class=\"text-success {$_cls}\" >" . strtoupper($item->OPN_transactionResult) . '</span><br>';
} ?>
<div class="flex items-center">
<!-- <button type="button" class="btn btn-sm btn-default <?php // echo $send_class; ?>" onclick="show_gai_modal('<?php // echo $item->OPN_SN; ?>')">

Loading…
Cancel
Save