过滤未付款订单
This commit is contained in:
parent
9eff2549c8
commit
d6884a44ed
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue