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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 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
...
@@ -14,6 +14,7 @@ class Kernel extends ConsoleKernel
...
@@ -14,6 +14,7 @@ class Kernel extends ConsoleKernel
*/
*/
protected
$commands
=
[
protected
$commands
=
[
Commands\Inspire
::
class
,
Commands\Inspire
::
class
,
\App\Console\Commands\JingDiaoUser
::
class
,
];
];
/**
/**
...
@@ -24,7 +25,6 @@ class Kernel extends ConsoleKernel
...
@@ -24,7 +25,6 @@ class Kernel extends ConsoleKernel
*/
*/
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