2015-07-28 15:15:57 +08:00
|
|
|
<?php
|
|
|
|
|
namespace Admin\Controller;
|
|
|
|
|
use Think\Controller;
|
|
|
|
|
|
2016-01-24 11:54:16 +08:00
|
|
|
/**
|
|
|
|
|
* @author Zhou Yuyang <1009465756@qq.com> 12:28 2016/1/23
|
|
|
|
|
* @copyright 2105-2018 SRCMS
|
|
|
|
|
* @homepage http://www.src.pw
|
|
|
|
|
* @version 1.5
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
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'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|