过滤未付款订单

This commit is contained in:
jianghanbo 2024-09-21 12:18:32 +08:00
parent 9eff2549c8
commit d6884a44ed
2 changed files with 6 additions and 2 deletions

View File

@ -389,14 +389,14 @@ class SpiderMt extends Command
//判断是否需要发短信
if ((in_array($order->os, [1, 7]) && array_key_exists($order->order_status, [1 => 1, 3 => 3]))) {
if ($admin_id > 0) {
//$this->sms($admin_id, $order);
$this->sms($admin_id, $order);
}
}
$work = \app\server\Orders::getLiveRoomWork($order->create_at, $order->product_id);
if ($work) {
$order->live_room_work_id = $work->id;
}
var_dump($order->toArray());
//var_dump($order->toArray());
//新获得一个用户的,提示管理员有新的订单
Redis::incrBy('CRM:USER:ONLINE:NEW:' . $admin_id, 1);
$item = new Orders();

View File

@ -86,6 +86,10 @@ class Meituan {
Log::info( "异常订单:". $order->orderId);
sleep(100);
}
// 过滤未付款订单
if ($order->orderStatus == 1) {
continue;
}
$item = new Orders();
$item->os = $this->os;
$item->sn = $order->orderId;