diff --git a/framework/base/control.class.php b/framework/base/control.class.php index 6f57ed714a..96f290dd92 100644 --- a/framework/base/control.class.php +++ b/framework/base/control.class.php @@ -938,7 +938,7 @@ class baseControl $data[$key] = str_replace('%22', '"', urlencode($value)); } - if(defined('RUN_MODE') and RUN_MODE == 'api') + if(defined('RUN_MODE') and in_array(RUN_MODE, array('api', 'xuanxuan'))) { print(urldecode(json_encode($data))); $response = helper::removeUTF8Bom(ob_get_clean());