From 4603845f878fa2e97ee8fc3b3361d2ceacc0d35e Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sun, 12 May 2019 14:29:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/PluginsAdminService.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/service/PluginsAdminService.php b/application/service/PluginsAdminService.php index 810ea4f49..a6a559edc 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)) { -- GitLab