weizong song 12 months ago
parent 4f54606c77
commit 9a74530f90

@ -8,6 +8,7 @@ use App\Models\Orders;
use App\Models\Refund;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Illuminate\Support\Facades\Log;
class Kernel extends ConsoleKernel
{
@ -42,6 +43,11 @@ class Kernel extends ConsoleKernel
$schedule->call(function () {
(new Refund())->autoRefund();
})->everyMinute();
//自动生成日志文件,配合系统层面定时更新文件权限,避免临时生成后的权限问题
$schedule->call(function () {
Log::info('auto generate log file');
})->daily();
}
/**

Loading…
Cancel
Save