From cf9a45b410b7d3e1cd328aa2652db86e8bc98ec9 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 10 Jan 2020 19:47:52 +0800 Subject: [PATCH] add clear --- common/Result.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Result.php b/common/Result.php index 1f8befa..b230c37 100644 --- a/common/Result.php +++ b/common/Result.php @@ -128,7 +128,7 @@ class Result public function getData($name = '') { if (!$this->isResultsOK()) { - return ''; + return $this->data; } if (!empty($name) && isset($this->data[$name])) { return $this->data[$name];