作者 Karson

修复Api控制器目录有非PHP文件时的BUG

移除冗余的Layer资源包
@@ -88,7 +88,7 @@ class Api extends Command @@ -88,7 +88,7 @@ class Api extends Command
88 ); 88 );
89 89
90 foreach ($files as $name => $file) { 90 foreach ($files as $name => $file) {
91 - if (!$file->isDir()) { 91 + if (!$file->isDir() && $file->getExtension() == 'php') {
92 $filePath = $file->getRealPath(); 92 $filePath = $file->getRealPath();
93 $classes[] = $this->get_class_from_file($filePath); 93 $classes[] = $this->get_class_from_file($filePath);
94 } 94 }
@@ -10,7 +10,6 @@ @@ -10,7 +10,6 @@
10 "bootstrap": "^3.3.7", 10 "bootstrap": "^3.3.7",
11 "font-awesome": "^4.6.1", 11 "font-awesome": "^4.6.1",
12 "bootstrap-table": "~1.11.0", 12 "bootstrap-table": "~1.11.0",
13 - "layer": "^3.0",  
14 "jstree": "~3.3.2", 13 "jstree": "~3.3.2",
15 "moment": "~2.15.2", 14 "moment": "~2.15.2",
16 "plupload": "~2.2.0", 15 "plupload": "~2.2.0",