2015-07-28 15:15:57 +08:00
|
|
|
<?php
|
|
|
|
|
namespace Admin\Controller;
|
|
|
|
|
use Think\Controller;
|
|
|
|
|
|
2016-01-24 11:54:16 +08:00
|
|
|
/**
|
2017-02-03 12:32:57 +08:00
|
|
|
* @Author: Zhou Yuyang <1009465756@qq.com> 10:28 2017/02/02
|
2016-12-03 21:42:04 +08:00
|
|
|
* @Copyright 2015-2020 SISMO
|
|
|
|
|
* @Project homepage https://github.com/CNSISMO
|
2017-02-03 12:32:57 +08:00
|
|
|
* @Version 2.0
|
2016-01-24 11:54:16 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2015-07-28 15:15:57 +08:00
|
|
|
class BaseController extends Controller {
|
|
|
|
|
public function _initialize(){
|
|
|
|
|
$sid = session('adminId');
|
|
|
|
|
//判断用户是否登陆
|
|
|
|
|
if(!isset($sid ) ) {
|
|
|
|
|
redirect(U('Login/index'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|