stanley-king преди 7 години
родител
ревизия
6b2b5d64eb
променени са 5 файла, в които са добавени 11 реда и са изтрити 3 реда
  1. 1 0
      core/framework/core/base.php
  2. 5 0
      crontab/control/date.php
  3. 1 1
      helper/statistics/stat_base.php
  4. 4 0
      helper/ugc_helper.php
  5. 0 2
      mac_start.sh

+ 1 - 0
core/framework/core/base.php

@@ -120,6 +120,7 @@ final class Base
 		}
 	}
 
+
 	/**
 	 * run
 	 */

+ 5 - 0
crontab/control/date.php

@@ -1126,4 +1126,9 @@ class dateControl extends BaseCronControl
     {
         notify_helper::onBonusExpire(10,5);
     }
+
+    private function send_reward()
+    {
+
+    }
 }

+ 1 - 1
helper/statistics/stat_base.php

@@ -60,7 +60,7 @@ class stat_base
         }
         elseif($stype == stat_base::last_month_type)
         {
-            $cur_time = date('Y-m-d',$stime) + 86400;
+            $cur_time = strtotime(date('Y-m-d',$stime)) + 86400;
             $cur_date = new DateTime();
             $cur_date->setTimestamp($cur_time);
             $inter = new DateInterval('P1M');

+ 4 - 0
helper/ugc_helper.php

@@ -210,6 +210,10 @@ class ugc_helper
         $initer->init_fellows();
         $initer->init_special();
     }
+    public static function send_reward()
+    {
+
+    }
 }
 
 class ugciniter

+ 0 - 2
mac_start.sh

@@ -3,7 +3,5 @@ sudo /usr/local/mysql/support-files/mysql.server restart
 sudo nginx
 sudo php-fpm
 redis-server /etc/redis/6379.conf
-redis-server /etc/redis/6380.conf
-./daemon/mac_ugcman
 php ./centra_srv.php
 php ./ugc_srv.php