浏览代码

修复Api控制器目录有非PHP文件时的BUG
移除冗余的Layer资源包

Karson 7 年之前
父节点
当前提交
7413cb3a6a
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 1
      application/admin/command/Api.php
  2. 0 1
      bower.json

+ 1 - 1
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);
             }

+ 0 - 1
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",