From 0dd65ab63418ddf56d2494cfc1c964d923dfdadb Mon Sep 17 00:00:00 2001 From: devil_gong Date: Wed, 12 Sep 2018 13:48:43 +0800 Subject: [PATCH] user --- service/Application/Home/Controller/CommonController.class.php | 3 ++- service/index.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/service/Application/Home/Controller/CommonController.class.php b/service/Application/Home/Controller/CommonController.class.php index 66f1cbf27..52eecbc23 100755 --- a/service/Application/Home/Controller/CommonController.class.php +++ b/service/Application/Home/Controller/CommonController.class.php @@ -86,10 +86,11 @@ class CommonController extends Controller { $result['msg'] = L('common_operation_error'); } - ob_start(); + //清除缓冲区中的内容 ob_clean(); + header('Content-Type:application/json; charset=utf-8'); exit(json_encode($result)); } diff --git a/service/index.php b/service/index.php index 75b3e3b49..9ff2e5b21 100755 --- a/service/index.php +++ b/service/index.php @@ -10,7 +10,7 @@ // +---------------------------------------------------------------------- // 首页应用入口文件 - +ob_start(); // 引入公共入口文件 require './core.php';