提交 2aba5eed authored 作者: chengye's avatar chengye

test

上级 9d1cd441
...@@ -22,6 +22,7 @@ class Base extends Controller ...@@ -22,6 +22,7 @@ class Base extends Controller
} }
private function check(){ private function check(){
dd("123"); dd("123");
$single = new SingleSign(); $single = new SingleSign();
try { try {
...@@ -36,7 +37,6 @@ class Base extends Controller ...@@ -36,7 +37,6 @@ class Base extends Controller
//保存加密串到redis //保存加密串到redis
$single->saveKey($user['ukey'],$sUser); $single->saveKey($user['ukey'],$sUser);
} catch ( \Exception $e){ } catch ( \Exception $e){
dd($e->getMessage().$e->getFile().$e->getLine());
$this->redirect('/login'); $this->redirect('/login');
} }
if(!$user['is_admin']){ if(!$user['is_admin']){
......
...@@ -20,11 +20,7 @@ class Login extends Controller ...@@ -20,11 +20,7 @@ class Login extends Controller
{ {
public function index() public function index()
{ {
dd("1231231");
// header("Location:http://oa-release.gonn.tech/");
echo '<script type="text/javascript">top.location.href="http://oa.gonn.com.cn/";</script>'; echo '<script type="text/javascript">top.location.href="http://oa.gonn.com.cn/";</script>';
//return $this->fetch('index');
} }
public function login(Request $request,LoginValidate $validate) public function login(Request $request,LoginValidate $validate)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论