src/Leevel/Throttler/Throttler.php
public function getRequestKey(?string $key = null): string
    {
        if (!$key && !$this->request) {
            throw new RuntimeException('Request is not set.');
        }

        return $key ?: sha1(
            $this->request->getClientIp().
            '@'.
            $this->request->getRoot()
        );
    }
public function getRequestKey(?string $key = null): string
    {
        if (!$key && !$this->request) {
            throw new RuntimeException('Request is not set.');
        }

        return $key ?: sha1(
            $this->request->getClientIp().
            '@'.
            $this->request->getRoot()
        );
    }
获取请求 key.

@param null|string $key

@return string