Commit ad9f3379 by 朱继来

调整用户统计时间

parent c993c3ab
...@@ -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();
......
...@@ -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
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