mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
代码格式更正
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
namespace think\behavior;
|
namespace think\behavior;
|
||||||
|
|
||||||
use think\Behavior;
|
use think\Behavior;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -54,7 +55,7 @@ class TokenBuild extends Behavior
|
|||||||
// 标识当前页面唯一性
|
// 标识当前页面唯一性
|
||||||
$tokenKey = md5($_SERVER['REQUEST_URI']);
|
$tokenKey = md5($_SERVER['REQUEST_URI']);
|
||||||
if (isset($_SESSION[$tokenName][$tokenKey])) {
|
if (isset($_SESSION[$tokenName][$tokenKey])) {
|
||||||
// 相同页面不重复生成session
|
// 相同页面不重复生成session
|
||||||
$tokenValue = $_SESSION[$tokenName][$tokenKey];
|
$tokenValue = $_SESSION[$tokenName][$tokenKey];
|
||||||
} else {
|
} else {
|
||||||
$tokenValue = $tokenType(microtime(true));
|
$tokenValue = $tokenType(microtime(true));
|
||||||
|
|||||||
Reference in New Issue
Block a user