platform notify
This commit is contained in:
35
app/Console/Commands/Api/DailyCheckUserActiveStatusCmd.php
Normal file
35
app/Console/Commands/Api/DailyCheckUserActiveStatusCmd.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\Api;
|
||||
|
||||
use App\Models\Api\Customer\CustomerUserExtendModel;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class DailyCheckUserActiveStatusCmd extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'app:daily-check-user-active-status-cmd';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = '每日更新用户活跃状态';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->info('每日更新用户活跃状态');
|
||||
$this->info('开始...');
|
||||
$oCustomerUserExtendModelExtend = new CustomerUserExtendModel();
|
||||
$oCustomerUserExtendModelExtend->updateAllUserActiveStatus();
|
||||
$this->info('结束...');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user