mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进Response类的getCode方法
This commit is contained in:
@@ -349,6 +349,6 @@ class Response
|
|||||||
*/
|
*/
|
||||||
public function getCode()
|
public function getCode()
|
||||||
{
|
{
|
||||||
return $this->header['status'];
|
return isset($this->header['status']) ? $this->header['status'] : 200;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user