23 lines
457 B
PHP
23 lines
457 B
PHP
<?php
|
|
namespace Admin\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('adminId');
|
|
//判断用户是否登陆
|
|
if(!isset($sid ) ) {
|
|
redirect(U('Login/index'));
|
|
}
|
|
|
|
}
|
|
|
|
} |