This commit is contained in:
thinkphp
2016-06-21 14:12:27 +08:00

View File

@@ -11,11 +11,11 @@
namespace think; namespace think;
use think\response\Json; use think\response\Json as JsonResponse;
use think\response\Jsonp; use think\response\Jsonp as JsonpResponse;
use think\response\Redirect; use think\response\Redirect as RedirectResponse;
use think\response\View; use think\response\View as ViewResponse;
use think\response\Xml; use think\response\Xml as XmlResponse;
class Response class Response
{ {
@@ -66,7 +66,7 @@ class Response
* @param int $code * @param int $code
* @param array $header * @param array $header
* @param array $options 输出参数 * @param array $options 输出参数
* @return Response|Json|View|Xml|Redirect|Jsonp * @return Response|JsonResponse|ViewResponse|XmlResponse|RedirectResponse|JsonpResponse
*/ */
public static function create($data = '', $type = '', $code = 200, array $header = [], $options = []) public static function create($data = '', $type = '', $code = 200, array $header = [], $options = [])
{ {