|
@@ -66,7 +66,7 @@ class Frontend extends Controller
|
|
|
// 设置当前请求的URI
|
|
// 设置当前请求的URI
|
|
|
$this->auth->setRequestUri($path);
|
|
$this->auth->setRequestUri($path);
|
|
|
// 检测是否需要验证登录
|
|
// 检测是否需要验证登录
|
|
|
- if (!$this->auth->match($this->noNeedLogin)) {
|
|
|
|
|
|
|
+ if (!$this->auth->match($this->noNeedLogin) && strtolower($path) != 'index/index') {
|
|
|
//初始化
|
|
//初始化
|
|
|
$this->auth->init($token);
|
|
$this->auth->init($token);
|
|
|
//检测是否登录
|
|
//检测是否登录
|