zhouzhijian 8 年之前
父節點
當前提交
0f1c1f39a9
共有 2 個文件被更改,包括 3 次插入2 次删除
  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();
     }
 }