Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3052565b
authored
May 11, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
b28228ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
30 deletions
app/Console/Commands/JingDiaoUser.php
app/Console/Kernel.php
app/Console/Commands/JingDiaoUser.php
0 → 100644
View file @
3052565b
<?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
);
}
}
app/Console/Kernel.php
View file @
3052565b
<?php
<?php
namespace
App\Console
;
namespace
App\Console
;
use
Illuminate\Console\Scheduling\Schedule
;
use
Illuminate\Console\Scheduling\Schedule
;
use
Illuminate\Foundation\Console\Kernel
as
ConsoleKernel
;
use
Illuminate\Foundation\Console\Kernel
as
ConsoleKernel
;
class
Kernel
extends
ConsoleKernel
class
Kernel
extends
ConsoleKernel
{
{
/**
/**
* The Artisan commands provided by your application.
* The Artisan commands provided by your application.
*
*
* @var array
* @var array
*/
*/
protected
$commands
=
[
protected
$commands
=
[
Commands\Inspire
::
class
,
Commands\Inspire
::
class
,
];
\App\Console\Commands\JingDiaoUser
::
class
,
];
/**
* Define the application's command schedule.
/**
*
*
Define the application's command schedule.
*
@param \Illuminate\Console\Scheduling\Schedule $schedule
*
* @
return void
* @
param \Illuminate\Console\Scheduling\Schedule $schedule
*
/
*
@return void
protected
function
schedule
(
Schedule
$schedule
)
*/
{
protected
function
schedule
(
Schedule
$schedule
)
$schedule
->
command
(
'inspire'
)
{
->
hourly
();
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment