diff --git a/library/think/Response.php b/library/think/Response.php index 91ab6d8b..d3d6d7eb 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -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);