|
@@ -20,7 +20,7 @@ class merchant_orderControl extends mbMerchantControl
|
|
|
if ($_GET['start_time'] > 0 && $_GET['end_time'] > 0) {
|
|
|
$cond['refill_order.order_time'] = ['between', [$_GET['start_time'], $_GET['end_time']]];
|
|
|
}
|
|
|
- $fields = 'refill_order.order_id,refill_order.order_sn,refill_order.mchid,refill_order.card_no,refill_order.mch_order,refill_order.card_type,refill_order.order_time,refill_order.notify_time,refill_order.refill_amount,refill_order.mch_amount,vr_order.order_state';
|
|
|
+ $fields = 'refill_order.order_id,refill_order.order_sn,refill_order.mchid,refill_order.card_no,refill_order.mch_order,refill_order.card_type,refill_order.order_time,refill_order.notify_time,refill_order.refill_amount,refill_order.mch_amount,vr_order.order_state,refill_order.channel_name,refill_order.ch_trade_no';
|
|
|
$order_list = $model_vr_order->getMerchantOrderList($cond, $this->page, $fields, 'refill_order.order_id desc');
|
|
|
$order_list = $this->merchant_order_format($order_list);
|
|
|
$result['data'] = $order_list;
|
|
@@ -38,6 +38,9 @@ class merchant_orderControl extends mbMerchantControl
|
|
|
if (isset($order['notify_time'])) {
|
|
|
$order['notify_time'] = date('Y-m-d H:i:s', $order['notify_time']);
|
|
|
}
|
|
|
+ if($order['channel_name'] != 'bjb'){
|
|
|
+ $order['ch_trade_no'] = '';
|
|
|
+ }
|
|
|
$order['order_state_text'] = $this->_orderState($order['order_state']);
|
|
|
$order['card_type_name'] = $this->scard_type($order['card_type']);
|
|
|
$data[] = $order;
|