* adjust for send method.
This commit is contained in:
@@ -885,7 +885,11 @@ class baseControl
|
||||
if($type != 'json') die();
|
||||
|
||||
$data = (array) $data;
|
||||
if(helper::isAjaxRequest() or $this->viewType == 'json') print(json_encode($data)) and die(helper::removeUTF8Bom(ob_get_clean()));
|
||||
if(helper::isAjaxRequest() or $this->viewType == 'json')
|
||||
{
|
||||
print(json_encode($data));
|
||||
die(helper::removeUTF8Bom(ob_get_clean()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 响应非ajax的请求。
|
||||
|
||||
Reference in New Issue
Block a user