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
e9e8b2b0
authored
Nov 05, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_iteration_20191028'
parents
23f42d64
901e8193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/Http/Controllers/CronController.php
app/Http/Controllers/CronController.php
View file @
e9e8b2b0
...
...
@@ -250,19 +250,19 @@ class CronController extends Controller
/**
* 推送新用户活动短信
*
* 条件:前
一
天注册,未下单的用户或下单未支付一笔订单的用户
* 条件:前
15
天注册,未下单的用户或下单未支付一笔订单的用户
*
* 推送时间:每天上午10点 (0 10 * * * /usr/bin/curl http://order.ichunt.net/act/sendactmsg)
*/
public
function
sendActMsg
()
{
$start_time
=
strtotime
(
date
(
'Y-m-d'
,
strtotime
(
'-1
day'
)));
// 前一
天0点
$start_time
=
strtotime
(
date
(
'Y-m-d'
,
strtotime
(
'-1
5 day'
)));
// 前15
天0点
$last_time
=
strtotime
(
date
(
'Y-m-d'
))
-
1
;
// 前一天23:59:59
$UserMainModel
=
new
UserMainModel
;
$OrderModel
=
new
OrderModel
;
// 获取前
一天新
注册用户
// 获取前
15天
注册用户
$user
=
$UserMainModel
->
where
(
'is_type'
,
0
)
->
where
(
'is_test'
,
0
)
->
whereBetween
(
'create_time'
,
[
$start_time
,
$last_time
])
...
...
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