dever 6 years ago
parent
commit
ec816f7010
1 changed files with 17 additions and 1 deletions
  1. 17 1
      src/View.php

+ 17 - 1
src/View.php

@@ -14,7 +14,23 @@ class View
 {
     public function kindeditorFile()
     {
-        echo 11;die;
+        $key = Dever::input('key');
+        $param['key'] = $key;
+        $file = Dever::db('upload/file')->state();
+        print_r($file);die;
+        $result = array();
+        //相对于根目录的上一级目录
+        $result['moveup_dir_path'] = $moveup_dir_path;
+        //相对于根目录的当前目录
+        $result['current_dir_path'] = $current_dir_path;
+        //当前目录的URL
+        $result['current_url'] = $current_url;
+        //文件数
+        $result['total_count'] = count($file_list);
+        //文件列表数组
+        $result['file_list'] = $file_list;
+
+        Dever::outDiy($result);
     }
 
     # webp