where([['order_status', '=', 0], ['is_delete', '=', 0], ['add_time', '<', (time() - $timeout)]])->update(['order_status' => 2]); Log::info('订单24小时未支付,设为无效订单:操作成功'); } }