* adjust for send method.

This commit is contained in:
wangyidong
2019-12-25 09:52:49 +08:00
parent 734ad0477a
commit a401599f7f
+5 -1
View File
@@ -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的请求。