From 7413cb3a6a81ea68cea465c6efa3add628ca1bc1 Mon Sep 17 00:00:00 2001 From: Karson Date: Wed, 8 Aug 2018 22:45:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DApi=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=99=A8=E7=9B=AE=E5=BD=95=E6=9C=89=E9=9D=9EPHP=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E7=9A=84BUG=20=E7=A7=BB=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99=E7=9A=84Layer=E8=B5=84=E6=BA=90=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 9079558f..2eb2b24d 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 562517ce..fa07ab51 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",