From 7413cb3a6a81ea68cea465c6efa3add628ca1bc1 Mon Sep 17 00:00:00 2001 From: Karson <karsonzhang@163.com> Date: Wed, 8 Aug 2018 22:45:13 +0800 Subject: [PATCH] 修复Api控制器目录有非PHP文件时的BUG 移除冗余的Layer资源包 --- application/admin/command/Api.php | 2 +- bower.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/application/admin/command/Api.php b/application/admin/command/Api.php index 9079558..2eb2b24 100644 --- a/application/admin/command/Api.php +++ b/application/admin/command/Api.php @@ -88,7 +88,7 @@ class Api extends Command ); foreach ($files as $name => $file) { - if (!$file->isDir()) { + if (!$file->isDir() && $file->getExtension() == 'php') { $filePath = $file->getRealPath(); $classes[] = $this->get_class_from_file($filePath); } diff --git a/bower.json b/bower.json index 562517c..fa07ab5 100755 --- a/bower.json +++ b/bower.json @@ -10,7 +10,6 @@ "bootstrap": "^3.3.7", "font-awesome": "^4.6.1", "bootstrap-table": "~1.11.0", - "layer": "^3.0", "jstree": "~3.3.2", "moment": "~2.15.2", "plupload": "~2.2.0", -- libgit2 0.24.0