Pro/application/console/controller/Common.php
2026-02-25 01:50:31 +08:00

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();
}
}
}