Karson 8 rokov pred
rodič
commit
8e4721d071
2 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 1 1
      extend/fast/Tree.php
  2. 2 2
      extend/fast/service/Upyun.php

+ 1 - 1
extend/fast/Tree.php

@@ -354,7 +354,7 @@ class Tree
                 $value = array(
                     '@childlist' => $childlist,
                     '@url'       => $childdata || !isset($value['@url']) ? "javascript:;" : url($value['@url']),
-                    '@caret'     => ($childdata && !$value['@badge'] ? '<i class="fa fa-angle-left"></i>' : ''),
+                    '@caret'     => ($childdata && (!isset($value['@badge']) || !$value['@badge']) ? '<i class="fa fa-angle-left"></i>' : ''),
                     '@badge'     => isset($value['@badge']) ? $value['@badge'] : '',
                     '@class'     => ($selected ? ' active' : '') . ($disabled ? ' disabled' : '') . ($childdata ? ' treeview' : ''),
                 );

+ 2 - 2
extend/fast/service/Upyun.php

@@ -106,14 +106,14 @@ class Upyun
 
     /**
      * 上传文件
-     * @param string $path 存储路径
+     * @param string $path 存储路径或文件
      * @param mixed $file 需要上传的文件,可以是文件流或者文件内容
      * @param boolean $auto_mkdir 自动创建目录
      * @param array $opts 可选参数
      */
     public function upload($path, $file = NULL, $auto_mkdir = True, $opts = NULL)
     {
-        return $this->writeFile($path, $file = NULL, $auto_mkdir, $opts);
+        return $this->writeFile($path, $file, $auto_mkdir, $opts);
     }
 
     public function writeFile($path, $file = NULL, $auto_mkdir = True, $opts = NULL)