提交 478d91bc 编写于 作者: D devil_gong

细节优化

上级 6c71357f
......@@ -18,6 +18,12 @@
*/
return [
// 默认输出类型
'default_return_type' => 'html',
// 默认AJAX 数据返回格式,可选json xml ...
'default_ajax_return' => 'json',
// 缓存key列表
// 权限缓存存储key
'cache_admin_power_key' => 'cache_admin_power_',
......
......@@ -19,11 +19,13 @@
return [
// 默认输出类型
'default_return_type' => 'json',
'default_return_type' => 'json',
// 默认AJAX 数据返回格式,可选json xml ...
'default_ajax_return' => 'json',
'default_ajax_return' => 'json',
// 默认JSONP格式返回的处理方法
'default_jsonp_handler' => 'jsonpReturn',
'default_jsonp_handler' => 'jsonpReturn',
// 百度编辑器配置信息 ueditor
'ueditor_config' => [
......
......@@ -17,6 +17,16 @@
* @datetime 2016-12-01T21:51:08+0800
*/
return [
'url_html_suffix' => MyC('home_seo_url_html_suffix', 'html', true),
// 默认输出类型
'default_return_type' => 'html',
// 默认AJAX 数据返回格式,可选json xml ...
'default_ajax_return' => 'json',
// 默认JSONP格式返回的处理方法
'default_jsonp_handler' => 'jsonpReturn',
// 伪静态后缀
'url_html_suffix' => MyC('home_seo_url_html_suffix', 'html', true),
];
?>
\ No newline at end of file
......@@ -125,7 +125,13 @@ class Plugins extends Common
return $this->fetch('public/tips_error');
}
}
return $obj->$pluginsaction($params);
$ret = $obj->$pluginsaction($params);
if(is_string($ret))
{
$this->assign('msg', $ret);
return $this->fetch('public/tips_error');
}
return $ret;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册