This commit is contained in:
liuyuhang 2024-07-11 15:38:54 +08:00
commit ab3df41fe5
2 changed files with 1 additions and 21 deletions

View File

@ -339,9 +339,6 @@ class SpiderDy extends Command
break; break;
} }
// 待使用订单提醒
$reminder_orders = [];
foreach ($list as $order) { foreach ($list as $order) {
$item = Orders::where('os', $order->os)->where('sn', $order->sn)->find(); $item = Orders::where('os', $order->os)->where('sn', $order->sn)->find();
@ -367,9 +364,6 @@ class SpiderDy extends Command
($order->os == 2 && array_key_exists($order->order_status, [2 => 2, 3 => 3, 4 => 4])) || ($order->os == 2 && array_key_exists($order->order_status, [2 => 2, 3 => 3, 4 => 4])) ||
($order->os == 3 && $order->order_status == 1)) { ($order->os == 3 && $order->order_status == 1)) {
// $this->sms($admin_id, $order); // $this->sms($admin_id, $order);
// 待使用订单提醒
$reminder_orders[] = $order;
} }
//新获得一个用户的,提示管理员有新的订单 //新获得一个用户的,提示管理员有新的订单
Redis::incrBy('CRM:USER:ONLINE:NEW:' . $admin_id, 1); Redis::incrBy('CRM:USER:ONLINE:NEW:' . $admin_id, 1);
@ -390,10 +384,6 @@ class SpiderDy extends Command
} }
} }
if (!empty($reminder_orders)) {
ServerOrders::reminderOrders(...$reminder_orders);
}
$page++; $page++;
} }
} }

View File

@ -374,9 +374,6 @@ class SpiderMt extends Command
break; break;
} }
// 待使用订单提醒
$reminder_orders = [];
foreach ($list as $order) { foreach ($list as $order) {
$item = Orders::where('os', $order->os)->where('sn', $order->sn)->find(); $item = Orders::where('os', $order->os)->where('sn', $order->sn)->find();
@ -401,9 +398,6 @@ class SpiderMt extends Command
($order->os == 2 && array_key_exists($order->order_status, [2 => 2, 3 => 3, 4 => 4])) || ($order->os == 2 && array_key_exists($order->order_status, [2 => 2, 3 => 3, 4 => 4])) ||
($order->os == 3 && $order->order_status == 1)) { ($order->os == 3 && $order->order_status == 1)) {
$this->sms($admin_id, $order); $this->sms($admin_id, $order);
// 待使用订单提醒
$reminder_orders[] = $order;
} }
//新获得一个用户的,提示管理员有新的订单 //新获得一个用户的,提示管理员有新的订单
Redis::incrBy('CRM:USER:ONLINE:NEW:' . $admin_id, 1); Redis::incrBy('CRM:USER:ONLINE:NEW:' . $admin_id, 1);
@ -424,10 +418,6 @@ class SpiderMt extends Command
} }
} }
if (!empty($reminder_orders)) {
ServerOrders::reminderOrders(...$reminder_orders);
}
$page++; $page++;
} }
} }