diff --git a/extend/fast/Tree.php b/extend/fast/Tree.php
index 752eb6e0..49958629 100644
--- a/extend/fast/Tree.php
+++ b/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'] ? '' : ''),
+ '@caret' => ($childdata && (!isset($value['@badge']) || !$value['@badge']) ? '' : ''),
'@badge' => isset($value['@badge']) ? $value['@badge'] : '',
'@class' => ($selected ? ' active' : '') . ($disabled ? ' disabled' : '') . ($childdata ? ' treeview' : ''),
);
diff --git a/extend/fast/service/Upyun.php b/extend/fast/service/Upyun.php
index 2155aee7..eaddea02 100644
--- a/extend/fast/service/Upyun.php
+++ b/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)