public static function getSqls()
{
return self::$sql;
}
/** * 输出数据 * */ public function display() { header('Content-Type: application/json;charset=' . Config::get('default_charset')); if ($GLOBALS['debug']) { $sqls = Debug::getSqls(); if (isset($sqls[0])) { $this->args['sql'] = implode($sqls, ', '); } } Plugin::hook('cml.before_cml_stop'); exit(json_encode($this->args, PHP_VERSION >= '5.4.0' ? JSON_UNESCAPED_UNICODE : 0)); }