16 lines
365 B
PHP
16 lines
365 B
PHP
<?php
|
|
namespace app\console\controller;
|
|
use think\Controller;
|
|
use think\Session;
|
|
use think\Request;
|
|
class Common Extends Controller{
|
|
public function __construct(){
|
|
parent::__construct();
|
|
$user_info = Session::get('user_info');
|
|
if(empty($user_info)){
|
|
$this->redirect('/login/index',301);
|
|
exit();
|
|
}
|
|
}
|
|
}
|