diff --git a/application/service/PluginsAdminService.php b/application/service/PluginsAdminService.php index 810ea4f492b72697f2b74059ec5dfd9bb63f4a9a..a6a559edc73d3f02edc3ba8ed0a7680a9adddcf8 100755 --- a/application/service/PluginsAdminService.php +++ b/application/service/PluginsAdminService.php @@ -819,6 +819,13 @@ php; */ 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'); if(empty($temp_plugins)) {