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
ad9f3379
authored
Jul 24, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整用户统计时间
parent
c993c3ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
app/Http/Controllers/CronController.php
config/params.php
app/Http/Controllers/CronController.php
View file @
ad9f3379
...
@@ -18,11 +18,10 @@ class CronController extends Controller
...
@@ -18,11 +18,10 @@ class CronController extends Controller
// 统计 2019-8-5 到 2019-10-31 期间的用户总额 定时任务下午6点 (0 18 * * * /usr/bin/curl http://order.ichunt.net/act/useramoumt)
// 统计 2019-8-5 到 2019-10-31 期间的用户总额 定时任务下午6点 (0 18 * * * /usr/bin/curl http://order.ichunt.net/act/useramoumt)
public
function
userAmount
()
public
function
userAmount
()
{
{
// $start_time = strtotime('2019-8-5');
$time
=
Config
(
'params.lx_activity_time'
);
// $end_time = strtotime('2019-10-31 23:59:59');
$start_time
=
strtotime
(
'2018-8-5'
);
$start_time
=
strtotime
(
$time
[
'start_time'
]
);
$end_time
=
strtotime
(
'2018-10-31 23:59:59'
);
$end_time
=
strtotime
(
$time
[
'end_time'
]
);
$PayLogModel
=
new
PayLogModel
();
$PayLogModel
=
new
PayLogModel
();
$ErpPayLogModel
=
new
ErpPayLogModel
();
$ErpPayLogModel
=
new
ErpPayLogModel
();
...
...
config/params.php
View file @
ad9f3379
...
@@ -86,4 +86,12 @@
...
@@ -86,4 +86,12 @@
7
=>
'待收货'
,
7
=>
'待收货'
,
10
=>
'已完成'
,
10
=>
'已完成'
,
],
],
// 猎芯活动用户金额统计时间
'lx_activity_time'
=>
[
'start_time'
=>
'2018-10-1'
,
'end_time'
=>
'2018-10-31 23:59:59'
,
],
];
];
\ No newline at end of file
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