27 行
544 B
PHP
可执行文件
27 行
544 B
PHP
可执行文件
<?php
|
|
|
|
namespace Delivery\Controller;
|
|
|
|
use app\common\controller\Api;
|
|
|
|
|
|
/**
|
|
* 文章接口
|
|
*/
|
|
class Article extends BaseController
|
|
{
|
|
protected $noNeedLogin = ['*'];
|
|
protected $noNeedRight = '*';
|
|
|
|
/**
|
|
* 文章详情
|
|
*/
|
|
public function info(){
|
|
$type = $this->request->post("type");
|
|
$articleModel = new \app\admin\model\paotui\Article();
|
|
$articleInfo = $articleModel->where(['category_id'=>$type])->find();
|
|
$this->success("请求成功",$articleInfo);
|
|
}
|
|
|
|
}
|