init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user