From 2f5db5f22258d77dba787013fe9aeaf9cd4469b8 Mon Sep 17 00:00:00 2001 From: trojanbox Date: Mon, 30 May 2016 18:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Response.php | 1 + library/think/controller/Rest.php | 6 ++---- library/think/db/Connection.php | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/library/think/Response.php b/library/think/Response.php index a59e23e5..31052b84 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -88,6 +88,7 @@ class Response * @access public * @param mixed $data 数据 * @return mixed + * @throws Exception */ public function send($data = []) { diff --git a/library/think/controller/Rest.php b/library/think/controller/Rest.php index e88826d9..ebf53be8 100644 --- a/library/think/controller/Rest.php +++ b/library/think/controller/Rest.php @@ -57,12 +57,10 @@ abstract class Rest /** * REST 调用 * @access public - * * @param string $method 方法名 * @param array $args 参数 - * * @return mixed - * @throws \think\Exception + * @throws \Exception */ public function _empty($method, $args) { @@ -88,7 +86,7 @@ abstract class Rest * @param mixed $data 要返回的数据 * @param String $type 返回类型 JSON XML * @param integer $code HTTP状态 - * @return void + * @return Response */ protected function response($data, $type = 'json', $code = 200) { diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index b7d94dfb..1b3de0a6 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -128,7 +128,7 @@ abstract class Connection * 创建指定模型的查询对象 * @access public * @param string $model 模型类名称 - * @return \think\Query + * @return \think\db\Query */ public function model($model) {