Files
SRCMS/Application/User/Controller/BaseController.class.php

23 lines
455 B
PHP
Raw Normal View History

<?php
namespace User\Controller;
use Think\Controller;
/**
* @Author: Zhou Yuyang <1009465756@qq.com> 10:28 2017/02/02
* @Copyright 2015-2020 SISMO
* @Project homepage https://github.com/CNSISMO
* @Version 2.0
*/
class BaseController extends Controller {
public function _initialize(){
$sid = session('userId');
//判断用户是否登陆
if(!isset($sid ) ) {
redirect(U('Login/index'));
}
}
}