src/DdvRestfulApi/Lib/Cors.php
public function setRequestInfo(RequestInfo $requestInfo)
    {
        if (isset($requestInfo) && $requestInfo instanceof RequestInfo) {
            $this->requestInfo = $requestInfo;
        } else {
            throw new RJsonError('requestInfo is wrong');
        }
        return $this;
    }
public function setRequestInfo(RequestInfo $requestInfo)
    {
        if (isset($requestInfo) && $requestInfo instanceof RequestInfo) {
            $this->requestInfo = $requestInfo;
        } else {
            throw new RJsonError('requestInfo is wrong');
        }
        return $this;
    }
设置请求信息
@param RequestInfo $requestInfo
@return $this
@throws RJsonError