init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace app\jk\controller;
|
||||
use \think\Controller;
|
||||
use think\Session;
|
||||
use think\Request;
|
||||
use think\Db;
|
||||
|
||||
class Common Extends Controller{
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
$user_info = Session::get('user_info');
|
||||
if(empty($user_info)){
|
||||
$this->redirect('/login/index',302);
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user