feat/task1-c-wallet
devil_gong 2018-09-12 13:51:35 +08:00
parent 891c296973
commit a9011fca78
2 changed files with 5 additions and 3 deletions

View File

@ -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));
}

View File

@ -9,7 +9,8 @@
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 公共应用入口文件
// 开启缓冲区
ob_start();
// HTTP类型
define('__MY_HTTP__', (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ? 'http' : 'https');