user
parent
891c296973
commit
a9011fca78
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@
|
|||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// 公共应用入口文件
|
||||
// 开启缓冲区
|
||||
ob_start();
|
||||
|
||||
// HTTP类型
|
||||
define('__MY_HTTP__', (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ? 'http' : 'https');
|
||||
|
|
|
|||
Loading…
Reference in New Issue