根目录下:config/access.inc.php
配置
<?php
/*
* 游客访问的黑/白名单,不需要开放的,可以注释掉
*/
return array (
"access" => array (
'public/Register/*' => true, // 注册
'public/Passport/*' => true, // 登录
'public/Widget/*' => true, // 插件
'page/Index/index' => true, // 自定义页面
'api/*/*' => true, // API
// 网站公告
// 'public/Index/announcement' => true,
// 个人主页
// 'public/Profile/index' => true,
// 'public/Profile/following' => true,
// 'public/Profile/follower' => true,
// 'public/Profile/data' => true,
// 微博内容
'public/Profile/feed' => true,
// 微博话题
// 'public/Topic/index' => true,
// 微博排行榜
// 'public/Rank/*' => true,
// 频道
'channel/Index/*' => true,
'radio/Index/*' => true,
'game/Index/index' => true,
//群英汇
'qunyinghui/Index/*' => true,
// 找人
// 'people/Index/*' => true,
// 微吧
// 'weiba/Index/index' => true,
// 'weiba/Index/detail' => true,
// 'weiba/Index/postDetail' => true,
// 'weiba/Index/postList' => true,
// 'weiba/Index/weibaList' => true,
// 升级查询
'public/Tool/*' => true,
'w3g/*/*' => true,//3G版
'wap/*/*' => true,
'develop/Public/*' => true,
)
);
配置
<?php
/*
* 游客访问的黑/白名单,不需要开放的,可以注释掉
*/
return array (
"access" => array (
'public/Register/*' => true, // 注册
'public/Passport/*' => true, // 登录
'public/Widget/*' => true, // 插件
'page/Index/index' => true, // 自定义页面
'api/*/*' => true, // API
// 网站公告
// 'public/Index/announcement' => true,
// 个人主页
// 'public/Profile/index' => true,
// 'public/Profile/following' => true,
// 'public/Profile/follower' => true,
// 'public/Profile/data' => true,
// 微博内容
'public/Profile/feed' => true,
// 微博话题
// 'public/Topic/index' => true,
// 微博排行榜
// 'public/Rank/*' => true,
// 频道
'channel/Index/*' => true,
'radio/Index/*' => true,
'game/Index/index' => true,
//群英汇
'qunyinghui/Index/*' => true,
// 找人
// 'people/Index/*' => true,
// 微吧
// 'weiba/Index/index' => true,
// 'weiba/Index/detail' => true,
// 'weiba/Index/postDetail' => true,
// 'weiba/Index/postList' => true,
// 'weiba/Index/weibaList' => true,
// 升级查询
'public/Tool/*' => true,
'w3g/*/*' => true,//3G版
'wap/*/*' => true,
'develop/Public/*' => true,
)
);