From b38e0d61b1b7cf8e54c8e7b60246226a97dd6b98 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Fri, 22 Nov 2019 15:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/PluginsAdminService.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/service/PluginsAdminService.php b/application/service/PluginsAdminService.php index 0a4b375f6..0a39d9aeb 100755 --- a/application/service/PluginsAdminService.php +++ b/application/service/PluginsAdminService.php @@ -1012,8 +1012,14 @@ php; // 获取包名 if(empty($plugins_name)) { - // 应用不存在则添加 + // 应用名称 $plugins_name = substr($file, 0, strpos($file, '/')); + if(empty($plugins_name)) + { + return DataReturn('插件包有误', -30); + } + + // 应用不存在则添加 $ret = self::PluginsVerification($plugins_name); if($ret['code'] != 0) {