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 '表存在记录,无法初始化';