|
@@ -40,19 +40,25 @@ class ordersendlistControl extends SystemControl
|
|
|
return $condition;
|
|
|
};
|
|
|
if ($_GET['time'] == 3) {
|
|
|
- $condition = $time_out_order(300, $condition);
|
|
|
- $time_cond[] = ['lt', (time() - 300)];
|
|
|
+ $condition = $time_out_order(180, $condition);
|
|
|
+ $time_cond[] = ['lt', (time() - 180)];
|
|
|
$_GET['card_type'] = 'phone';
|
|
|
}
|
|
|
if ($_GET['time'] == 4) {
|
|
|
- $condition = $time_out_order(900, $condition);
|
|
|
- $time_cond[] = ['lt', (time() - 900)];
|
|
|
+ $condition = $time_out_order(300, $condition);
|
|
|
+ $time_cond[] = ['lt', (time() - 300)];
|
|
|
+ $_GET['card_type'] = 'phone';
|
|
|
}
|
|
|
if ($_GET['time'] == 5) {
|
|
|
$condition = $time_out_order(600, $condition);
|
|
|
$time_cond[] = ['lt', (time() - 600)];
|
|
|
+ }
|
|
|
+ if ($_GET['time'] == 6) {
|
|
|
+ $condition = $time_out_order(900, $condition);
|
|
|
+ $time_cond[] = ['lt', (time() - 900)];
|
|
|
$_GET['card_type'] = 'phone';
|
|
|
}
|
|
|
+
|
|
|
if (!empty($_GET['card_type'])) {
|
|
|
if (in_array($_GET['card_type'], ['1', '2', '4', '5', '6', '7'])) {
|
|
|
$condition['refill_order.card_type'] = $_GET['card_type'];
|