Browse Source

修复登录无限跳转BUG

Karson 8 years ago
parent
commit
cbfc382d8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/common/controller/Backend.php

+ 1 - 1
application/common/controller/Backend.php

@@ -92,7 +92,7 @@ class Backend extends Controller
         !defined('IS_AJAX') && define('IS_AJAX', $this->request->isAjax());
 
         // 非选项卡时重定向
-        if (!IS_AJAX && !IS_ADDTABS && !IS_DIALOG && $path !== "/{$modulename}/index/index" && $controllername != 'ajax')
+        if (!IS_AJAX && !IS_ADDTABS && !IS_DIALOG && !in_array($controllername, ['index', 'ajax']))
         {
             $url = $this->request->url();
             $this->redirect('index/index', [], 302, ['referer' => $url]);