提交 4603845f 编写于 作者: G gongfuxiang

应用管理

上级 830ab116
...@@ -819,6 +819,13 @@ php; ...@@ -819,6 +819,13 @@ php;
*/ */
private static function PluginsExistInsert($params, $plugins) private static function PluginsExistInsert($params, $plugins)
{ {
// 是否非使用的名称
if(in_array($plugins, ['view', 'shopxo']))
{
return DataReturn('不能使用限制的名称['.$plugins.']', -1);
}
// 应用是否存在
$temp_plugins = Db::name('Plugins')->where(['plugins'=>$plugins])->value('plugins'); $temp_plugins = Db::name('Plugins')->where(['plugins'=>$plugins])->value('plugins');
if(empty($temp_plugins)) if(empty($temp_plugins))
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册