love_php/app/Console/Commands/MatchingRate.php

49 lines
904 B
PHP
Raw Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Services\CronService;
use App\Repositories\Eloquent\SmsRepository as Sms;
use Illuminate\Container\Container as App;
class MatchingRate extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'match:make';
/**
* The console command description.
*
* @var string
*/
protected $description = '生成匹配记录';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$cron = new CronService();
$result = $cron->newUserMatchingRate();
$this->info($result);
}
}