zhouzhijian 8 years ago
parent
commit
0f1c1f39a9
2 changed files with 3 additions and 2 deletions
  1. 2 1
      crontab/control/date.php
  2. 1 1
      crontab/control/hour.php

+ 2 - 1
crontab/control/date.php

@@ -9,6 +9,8 @@
  */
 defined('InShopNC') or exit('Access Invalid!');
 
+require_once(BASE_ROOT_PATH.'/helper/notify_helper.php');
+
 class dateControl extends BaseCronControl {
 
     /**
@@ -935,7 +937,6 @@ class dateControl extends BaseCronControl {
 
     private function bonus_expire_notify()
     {
-        require(BASE_ROOT_PATH.'/helper/notify_helper.php');
         notify_helper::onBonusExpire(10,5);
     }
 }

+ 1 - 1
crontab/control/hour.php

@@ -255,7 +255,7 @@ class hourControl extends BaseCronControl {
      */
     public function releaseExpiredBonusOp()
     {
-        require(BASE_ROOT_PATH.'/helper/notify_helper.php');
+        require_once(BASE_ROOT_PATH.'/helper/notify_helper.php');
         notify_helper::bonus_expired();
     }
 }