Update validacionCompra.php
This commit is contained in:
@@ -36,6 +36,8 @@ class validacionCompra extends Command
|
|||||||
{
|
{
|
||||||
$fecha_ahora = Carbon::now()->format('Y-m-d H:i:s'); // Fecha y hora actual
|
$fecha_ahora = Carbon::now()->format('Y-m-d H:i:s'); // Fecha y hora actual
|
||||||
$hora_antes = Carbon::now()->subHours(100)->format('Y-m-d H:i:s'); // 24 horas antes
|
$hora_antes = Carbon::now()->subHours(100)->format('Y-m-d H:i:s'); // 24 horas antes
|
||||||
|
//$hora_antes = Carbon::now()->subMinutes(10)->format('Y-m-d H:i:s');
|
||||||
|
|
||||||
|
|
||||||
$resultados = Historiale::select('vendedor_id')
|
$resultados = Historiale::select('vendedor_id')
|
||||||
->selectRaw('COUNT(*) as total')
|
->selectRaw('COUNT(*) as total')
|
||||||
@@ -117,9 +119,9 @@ class validacionCompra extends Command
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
if ($response->successful()) {
|
if ($response->successful()) {
|
||||||
echo "Mensaje enviado correctamente.";
|
Log::info('Mensaje enviado a Telegram');
|
||||||
} else {
|
} else {
|
||||||
echo "Error al enviar el mensaje.";
|
Log::error('Error al enviar mensaje a Telegram');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user