IconApiController.class.php
1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Created by PhpStorm.
* User: liyifei2012it
* Date: 17/4/11
* Time: 16:31
*/
namespace Apicp\Controller\Operate;
class IconApiController extends \Apicp\Controller\AbstractController
{
/**
* 栏目接口
* @desc 栏目接口
* @return array(
* array(
* 'id' => '分类 ID', // 分类 ID
* 'name' => '分类名称', // 分类名称
* 'url' => '分类链接,如果为空,则表明该链接不可直接访问', // 分类链接,如果为空,则表明该链接不可直接访问
* 'upId' => '上级分类 ID,为 0 则表示顶级' // 上级分类 ID,为 0 则表示顶级
* ),
* array()
* )
*/
public function Index_post()
{
$res[] = [
'id' => '1',
'name' => '全部',
// 只有一级分类可以直接跳转
'url' => 'Task/Frontend/Index/SignIndex',
'upId' => '0',
];
$this->_result = $res;
}
}