* adjust for control send fail.

This commit is contained in:
wangyidong
2016-03-14 08:39:16 +08:00
parent 5188f6aa0b
commit c604bf2ba2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -752,7 +752,7 @@ class baseControl
if($type != 'json') die();
$data = (array) $data;
if(helper::isAjaxRequest()) print(json_encode($data)) && die(helper::removeUTF8Bom(ob_get_clean()));
if(helper::isAjaxRequest()) print(json_encode($data)) and die(helper::removeUTF8Bom(ob_get_clean()));
/**
* 响应非ajax的请求。