Commit e9e8b2b0 by 朱继来

Merge branch 'zjl_iteration_20191028'

parents 23f42d64 901e8193
Showing with 3 additions and 3 deletions
......@@ -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('-15 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])
......
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