nginx+thinkphp,我访问根目录下a.txt文件,错误是无法访问模块a?

浏览:2152 发布日期:2017/12/26 分类:ThinkPHP5专区
主要我做微信授权,需要把一个txt文件放到根目录下,然后我访问这个文件就出错了
场景:访问如下url
http://mall7.95home.top/MP_verify_ZakcK8YeJIOPRZr0.txt
结果:
[0] HttpException in App.php line 360
模块不存在:mp_verify_zakck8yejioprzr0.txt

// 模块初始化
if ($module && $available) {
// 初始化模块
$request->module($module);
$config = self::init($module);
// 模块请求缓存检查
$request->cache($config['request_cache'], $config['request_cache_expire'], $config['request_cache_except']);
} else {
throw new HttpException(404, 'module not exists:' . $module);
}
} else {
// 单一模块部署
$module = '';
$request->module($module);
}
// 当前模块路径
App::$modulePath = APP_PATH . ($module ? $module . DS : '');
最佳答案
评论( 相关
后面还有条评论,点击查看>>