🐞 fix(command): 取消分担时发送待使用提示

取消爬虫分单时发送待使用提醒短信。
This commit is contained in:
liuyuhang 2024-07-11 09:25:06 +08:00
parent 224c437e7f
commit 5e1fa05c64
2 changed files with 1 additions and 21 deletions

View File

@ -339,9 +339,6 @@ class SpiderDy extends Command
break;
}
// 待使用订单提醒
$reminder_orders = [];
foreach ($list as $order) {
$item = Orders::where('os', $order->os)->where('sn', $order->sn)->find();
@ -366,10 +363,7 @@ class SpiderDy extends Command
if (($order->os == 1 && array_key_exists($order->order_status, [1 => 1, 3 => 3])) ||
($order->os == 2 && array_key_exists($order->order_status, [2 => 2, 3 => 3, 4 => 4])) ||
($order->os == 3 && $order->order_status == 1)) {
// $this->sms($admin_id, $order);
// 待使用订单提醒
$reminder_orders[] = $order;
// $this->sms($admin_id, $order);
}
//新获得一个用户的,提示管理员有新的订单
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++;
}
}

View File

@ -374,9 +374,6 @@ class SpiderMt extends Command
break;
}
// 待使用订单提醒
$reminder_orders = [];
foreach ($list as $order) {
$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 == 3 && $order->order_status == 1)) {
$this->sms($admin_id, $order);
// 待使用订单提醒
$reminder_orders[] = $order;
}
//新获得一个用户的,提示管理员有新的订单
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++;
}
}