改名
This commit is contained in:
@@ -91,12 +91,12 @@ trait HttpParams
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return string
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function getRawContent(): mixed
|
public function getContent(): string
|
||||||
{
|
{
|
||||||
return $this->_rawContent;
|
return $this->_body;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -182,8 +182,9 @@ class Request extends HttpService implements RequestInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $value
|
* @param $value
|
||||||
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function setGrantAuthorization($value)
|
public function setGrantAuthorization($value): mixed
|
||||||
{
|
{
|
||||||
return $this->_grant = $value;
|
return $this->_grant = $value;
|
||||||
}
|
}
|
||||||
@@ -231,7 +232,6 @@ class Request extends HttpService implements RequestInterface
|
|||||||
if (!empty($this->_platform)) {
|
if (!empty($this->_platform)) {
|
||||||
return $this->_platform;
|
return $this->_platform;
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = $this->getAgent();
|
$user = $this->getAgent();
|
||||||
$match = preg_match('/\(.*\)?/', $user, $output);
|
$match = preg_match('/\(.*\)?/', $user, $output);
|
||||||
if (!$match || count($output) < 1) {
|
if (!$match || count($output) < 1) {
|
||||||
@@ -346,23 +346,6 @@ class Request extends HttpService implements RequestInterface
|
|||||||
return $this->isCli === TRUE;
|
return $this->isCli === TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param $name
|
|
||||||
* @param $value
|
|
||||||
*
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public function __set($name, $value)
|
|
||||||
{
|
|
||||||
$method = 'set' . ucfirst($name);
|
|
||||||
if (method_exists($this, $method)) {
|
|
||||||
$this->$method($value);
|
|
||||||
} else {
|
|
||||||
parent::__set($name, $value); // TODO: Change the autogenerated stub
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed|null
|
* @return mixed|null
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user