feat/task1-c-wallet
devil_gong 2018-09-12 13:53:44 +08:00
parent a9011fca78
commit 564f66a2ba
2 changed files with 7 additions and 1 deletions

View File

@ -94,6 +94,12 @@ class CommonController extends Controller
{
$result['msg'] = L('common_operation_error');
}
//清除缓冲区中的内容
ob_clean();
// 输出json
header('Content-Type:application/json; charset=utf-8');
exit(json_encode($result));
}

View File

@ -88,7 +88,7 @@ class CommonController extends Controller
}
//清除缓冲区中的内容
//ob_clean();
ob_clean();
// 输出json
header('Content-Type:application/json; charset=utf-8');