From a9011fca788df54c6b0422e60b687b1403426df0 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Wed, 12 Sep 2018 13:51:35 +0800 Subject: [PATCH] user --- .../Application/Home/Controller/CommonController.class.php | 5 +++-- service/core.php | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/service/Application/Home/Controller/CommonController.class.php b/service/Application/Home/Controller/CommonController.class.php index 52eecbc23..89adae626 100755 --- a/service/Application/Home/Controller/CommonController.class.php +++ b/service/Application/Home/Controller/CommonController.class.php @@ -87,9 +87,10 @@ class CommonController extends Controller $result['msg'] = L('common_operation_error'); } -//清除缓冲区中的内容 -ob_clean(); + //清除缓冲区中的内容 + //ob_clean(); + // 输出json header('Content-Type:application/json; charset=utf-8'); exit(json_encode($result)); } diff --git a/service/core.php b/service/core.php index e67636a2a..569c54c07 100755 --- a/service/core.php +++ b/service/core.php @@ -9,7 +9,8 @@ // | Author: liu21st // +---------------------------------------------------------------------- -// 公共应用入口文件 +// 开启缓冲区 +ob_start(); // HTTP类型 define('__MY_HTTP__', (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ? 'http' : 'https');