9
[0] Error in Request.php line 1972 Call to a member function set() on null
* @param string $name 令牌名称
* @param mixed $type 令牌生成方法
* @return string
*/
public function buildToken(string $name = '__token__', $type = 'md5'): string
{
$type = is_callable($type) ? $type : 'md5';
$token = call_user_func($type, $this->server('REQUEST_TIME_FLOAT'));
$this->session->set($name, $token);
return $token;
}