Browse Source

修改统计任务最后存储数据

stanley-king 8 years ago
parent
commit
15a95da374
1 changed files with 2 additions and 2 deletions
  1. 2 2
      helper/statistics_helper.php

+ 2 - 2
helper/statistics_helper.php

@@ -42,11 +42,11 @@ class statistics_helper
         $morning = $day->getTimestamp();
 
         $time_stamp = $morning + 12 * 60 * 60;
-        if($this->mRecordTime > $time_stamp) {
+        if(time() > $time_stamp) {
             $time_stamp = $day->getTimestamp() + 24 * 60 * 60;
         }
 
-        return ($this->mRecordTime >= $time_stamp);
+        return (time() >= $time_stamp);
     }
 
     private function save()