You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
564 B

<?php
/**
* @copyright ©2018 浙江禾匠信息科技
* @author Lu Wei
* @link http://www.zjhejiang.com/
* Created by IntelliJ IDEA
* Date Time: 2018/10/24 9:22
*/
namespace app\controllers;
/**
* 定时任务接收控制器
* Class TaskController
* @package app\controllers
*/
class TaskController extends Controller
{
public function init()
{
parent::init();
$this->enableCsrfValidation = false;
}
public function actionIndex($token)
{
\Yii::$app->task->run($token);
}
}