You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
|
|
|
|
|
|
use App\Services\NoShowBlacklistService;
|
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
|
|
|
|
class SyncNoShowBlacklistCommand extends Command
|
|
|
|
|
|
{
|
|
|
|
|
|
protected $signature = 'reservations:sync-no-show-blacklist';
|
|
|
|
|
|
|
|
|
|
|
|
protected $description = '累计3次预约未核销的手机号写入全平台禁约(按活动开始日+3个月)';
|
|
|
|
|
|
|
|
|
|
|
|
public function handle(NoShowBlacklistService $service): int
|
|
|
|
|
|
{
|
|
|
|
|
|
$n = $service->syncAll();
|
|
|
|
|
|
$this->info("应用禁约:{$n} 个手机号。");
|
|
|
|
|
|
|
|
|
|
|
|
return self::SUCCESS;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|