mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正Response类的send方法
This commit is contained in:
@@ -104,7 +104,7 @@ class Response
|
||||
*/
|
||||
public function send($data = null)
|
||||
{
|
||||
$data = !is_null($data) ?: $this->data;
|
||||
$data = !is_null($data) ? $data : $this->data;
|
||||
|
||||
if (isset($this->contentType)) {
|
||||
$this->contentType($this->contentType);
|
||||
|
||||
Reference in New Issue
Block a user