cache_board(); Log::warning("board updated."); } if ($tm['tm_min'] == 0) { // 整点做活动 $activities = [new ClearanceCalc(), new LuckyCalc()]; foreach($activities as $activity) { $activity->calc(); } Log::warning('onTimer_60() activities calculated.'); // 每日 24 if ($tm['tm_hour'] == 0) { SystemLog::deleteLog(); Log::warning('onTimer_60() remove outdated admin logs'); } } } /** * 180秒钟执行的方法 */ public function onTimer_180() { } /** * 300秒钟执行的方法 */ public function onTimer_300() { UserToken::delToken();//删除一天前的过期token SystemAttachment::emptyYesterdayAttachment();//清除昨日海报 StoreOrder::sendTen();//10分钟未付款发送通知 } }