From 30d9c305227f3361a14de9d9d4b58dde9c300248 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Mon, 25 Nov 2019 11:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=84=9A=E6=9C=AC->=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6=E8=A7=92=E8=89=B2=E5=85=85=E5=80=BC=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/AutoController.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/AutoController.class.php b/Application/Admin/Controller/AutoController.class.php index 1c04e0d46..7a8902207 100644 --- a/Application/Admin/Controller/AutoController.class.php +++ b/Application/Admin/Controller/AutoController.class.php @@ -896,9 +896,9 @@ public function auto_rrdae(){ $time = strtotime(date('Y-m-d 00:00:00', time() - (3600 * 24))); $res = M('user_play_data_count', 'tab_')->where(array('create_time' => $time))->find(); if (empty($res)) { - $spendMap['pay_time'] = ['between', [$time, strtotime(date('Y-m-d 23:59:59', $time))]]; + $map['pay_time'] = ['between', [$time, strtotime(date('Y-m-d 23:59:59', $time))]]; - $this->userPlayDataCountByMap($spendMap); + $this->userPlayDataCountByMap($map); } } @@ -908,9 +908,9 @@ public function auto_rrdae(){ $res = M('user_play_data_count', 'tab_')->order('id asc')->find(); if (empty($res)) { $time = strtotime(date('Y-m-d 00:00:00', time())); - $spendMap['pay_time'] = ['lt', $time]; + $map['pay_time'] = ['lt', $time]; - $this->userPlayDataCountByMap($spendMap); + $this->userPlayDataCountByMap($map); echo '初始化成功'; } else { echo '表存在记录,无法初始化';