From 38f7e25c82c0a6aaea695efaec766f4239ecdfb7 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 22 Dec 2015 17:42:53 +0800 Subject: [PATCH] =?UTF-8?q?returnData=E5=A6=82=E6=9E=9Ctype=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=BA=E7=A9=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/response.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/response.php b/library/think/response.php index 7496d7ef..d1e3026e 100644 --- a/library/think/response.php +++ b/library/think/response.php @@ -52,6 +52,8 @@ class Response $handler = !empty($_GET[Config::get('var_jsonp_handler')]) ? $_GET[Config::get('var_jsonp_handler')] : Config::get('default_jsonp_handler'); $data = $handler . '(' . json_encode($data, JSON_UNESCAPED_UNICODE) . ');'; break; + case '': + break default: // 用于扩展其他返回格式数据 Hook::listen('return_data', $data);