shish 4 years ago
parent
commit
fbc7297186
1 changed files with 3 additions and 3 deletions
  1. 3 3
      console/controllers/GlobalController.php

+ 3 - 3
console/controllers/GlobalController.php

@@ -31,15 +31,15 @@ class GlobalController extends Controller
         }
 
         //每天凌晨0:10保存昨天访客数
-        $hour = '0010';
+        //$hour = '0010';
         if ($hour == '0010') {
             $shopList = ShopClass::getAllByCondition(['ptStyle' => 2], null, '*', null, true);
             if (!empty($shopList)) {
                 foreach ($shopList as $shop) {
 
-                    //$date = date("Ymd", strtotime("-1 day"));
+                    $date = date("Ymd", strtotime("-1 day"));
 
-                    $date = date("Ymd");
+                    //$date = date("Ymd");
 
                     $visitNum = StatVisitClass::getVisitNum($shop, $date);
                     $currentNum = bcadd($shop->totalVisit, $visitNum, 2);