ReleaseController.class.php
497 Bytes
<?php
/**
* 定时发布回调
* Created by PhpStorm.
* User: 大熊
* Date: 2018/5/16
* Time: 19:21
*/
namespace Frontend\Controller\Callback;
use Common\Service\ArticleService;
class ReleaseController extends AbstractController
{
public function index()
{
$param = $this->callBackData;
if (empty($param)) {
return true;
}
$service = new ArticleService();
$service->release($param['article_id']);
return true;
}
}