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