项目初始化
This commit is contained in:
46
application/api/controller/Cron.php
Normal file
46
application/api/controller/Cron.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace app\api\controller;
|
||||
|
||||
class Cron
|
||||
{
|
||||
//每秒执行
|
||||
public function PerformPerSecond()
|
||||
{
|
||||
$cron = new \app\cron\controller\PerformPerSecond();
|
||||
$cron->index();
|
||||
}
|
||||
|
||||
//每周执行
|
||||
public function PerformPerWeek()
|
||||
{
|
||||
$cron = new \app\cron\controller\Subsidy();
|
||||
$cron->index();
|
||||
}
|
||||
|
||||
//每10秒执行
|
||||
public function TenSeconds()
|
||||
{
|
||||
$cron = new \app\cron\controller\TenSeconds();
|
||||
$cron->index();
|
||||
}
|
||||
|
||||
//每天执行
|
||||
public function DaySeconds()
|
||||
{
|
||||
$cron = new \app\cron\controller\DaySeconds();
|
||||
$cron->index();
|
||||
}
|
||||
|
||||
//巡乐会结束 礼物发放
|
||||
public function XlhSend(){
|
||||
$cron = new \app\cron\controller\RoomPan();
|
||||
$cron->index();
|
||||
}
|
||||
|
||||
//交友房结束
|
||||
public function FriendEnd(){
|
||||
$cron = new \app\cron\controller\FriendEnd();
|
||||
$cron->index();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user