|
@@ -14,7 +14,7 @@ class ordersendlistControl extends SystemControl
|
|
|
$condition['refill_order.inner_status'] = 0;
|
|
|
$condition['vr_order.order_state'] = ORDER_STATE_SEND;
|
|
|
|
|
|
- $condition['refill_order.order_time'] = ['lt', (time() - 300)];
|
|
|
+ $condition['refill_order.order_time'] = ['lt', (time() - 180)];
|
|
|
if (!empty($_GET['mchid'])) {
|
|
|
$condition['refill_order.mchid'] = $_GET['mchid'];
|
|
|
}
|
|
@@ -63,7 +63,6 @@ class ordersendlistControl extends SystemControl
|
|
|
$condition = $time_out_order(7200, $condition);
|
|
|
$time_cond[] = ['lt', (time() - 7200)];
|
|
|
$_GET['card_type'] = 'phone';
|
|
|
- $_GET['quality'] = 5;
|
|
|
}
|
|
|
|
|
|
if (!empty($_GET['card_type'])) {
|
|
@@ -154,7 +153,7 @@ class ordersendlistControl extends SystemControl
|
|
|
Tpl::showpage('refill.order.neterr.index');
|
|
|
}
|
|
|
|
|
|
- public function orderFormat($order_list, $merchant_list)
|
|
|
+ public function orderFormat($order_list, $merchant_list): array
|
|
|
{
|
|
|
$merchants = [];
|
|
|
foreach ($merchant_list as $value) {
|
|
@@ -171,8 +170,12 @@ class ordersendlistControl extends SystemControl
|
|
|
|
|
|
$order_list[$order_id]['diff_time'] = $diff_time;
|
|
|
$order_list[$order_id]['diff_time_text'] = $this->elapse_time($diff_time);
|
|
|
-
|
|
|
$order_list[$order_id]['quality_text'] = $this->quality_format($order_info['quality'],$order_info['card_type']);
|
|
|
+ if($diff_time > $merchants[$order_info['mchid']]['time_out']) {
|
|
|
+ $order_list[$order_id]['time_out_state'] = 1;
|
|
|
+ }else{
|
|
|
+ $order_list[$order_id]['time_out_state'] = 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return $order_list;
|