提交 20fad427 authored 作者: chengye's avatar chengye

test isadmin字段值

上级 34b6870c
...@@ -9,6 +9,7 @@ namespace app\admin\controller; ...@@ -9,6 +9,7 @@ namespace app\admin\controller;
use app\admin\model\StaffModel; use app\admin\model\StaffModel;
use think\Exception; use think\Exception;
use think\facade\Cookie; use think\facade\Cookie;
use think\facade\Session;
class SingleSign { class SingleSign {
public $instence = null; public $instence = null;
...@@ -37,6 +38,9 @@ class SingleSign { ...@@ -37,6 +38,9 @@ class SingleSign {
$str = $this->getSid(); $str = $this->getSid();
$pos = stripos($str,'isadmin|b:') + 10; $pos = stripos($str,'isadmin|b:') + 10;
$isa = Session::get('isadmin');
dd($isa);
$isAdmin = substr($str,$pos,1); $isAdmin = substr($str,$pos,1);
dd($isAdmin); dd($isAdmin);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论