Commit 3052565b by 孙龙

up

parent b28228ce
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
use DB;
class JingDiaoUser extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'JingDiao:ClearUser';
/**
* The console command description.
*
* @var string
*/
protected $description = '清除静调用户是手机号的';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$list = DB::Connection("order")->table("lie_user_main")->whereRaw(" is_type = 1 and mobile != '' ")->count();
dump($list);
}
}
......@@ -14,6 +14,7 @@ class Kernel extends ConsoleKernel
*/
protected $commands = [
Commands\Inspire::class,
\App\Console\Commands\JingDiaoUser::class,
];
/**
......@@ -24,7 +25,6 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('inspire')
->hourly();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment