分离后台和用户中心登录状态
This commit is contained in:
@@ -8,11 +8,12 @@
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\controller\user;
|
||||
|
||||
use think\facade\View;
|
||||
use think\facade\Cache;
|
||||
use app\controller\Base as BaseC;
|
||||
use app\model\Model;
|
||||
use app\model\Form;
|
||||
use app\model\Model;
|
||||
use think\facade\Cache;
|
||||
use think\facade\Config;
|
||||
use think\facade\View;
|
||||
|
||||
class Base extends BaseC {
|
||||
|
||||
@@ -46,7 +47,7 @@ class Base extends BaseC {
|
||||
$this->tpl_config['view_dir_name'] = 'public' . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $pc_themes;
|
||||
}
|
||||
}
|
||||
if(!file_exists($this->app->getRootPath() . $this->tpl_config['view_dir_name'] . DIRECTORY_SEPARATOR . 'user')){
|
||||
if (!file_exists($this->app->getRootPath() . $this->tpl_config['view_dir_name'] . DIRECTORY_SEPARATOR . 'user')) {
|
||||
$this->tpl_config['view_dir_name'] = 'public' . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . 'default';
|
||||
}
|
||||
if ($template == '') {
|
||||
|
||||
Reference in New Issue
Block a user