|
@@ -193,11 +193,14 @@ class Input
|
|
$domain = $upload['domain'];
|
|
$domain = $upload['domain'];
|
|
$token = $upload['uptoken'];
|
|
$token = $upload['uptoken'];
|
|
$host = $upload['host'];
|
|
$host = $upload['host'];
|
|
- $html = ' m="qiniu" domain="'.$domain.'" host="'.$host.'" token="'.$token.'" ';
|
|
|
|
|
|
+
|
|
|
|
+ $date = explode('-', date("Y-m-d"));
|
|
|
|
+ $path = $param['key'] . '/' . $date[0] . '/' . $date[1] . '/' . $date[2] . '/';
|
|
|
|
+ $html = ' m="qiniu" domain="'.$domain.'" path="'.$path.'" host="'.$host.'" token="'.$token.'" ';
|
|
}
|
|
}
|
|
|
|
|
|
if (isset($param['large']) && $param['large']) {
|
|
if (isset($param['large']) && $param['large']) {
|
|
- $html .= ' l=1 ';
|
|
|
|
|
|
+ $html .= ' l="1" ';
|
|
}
|
|
}
|
|
|
|
|
|
return $html;
|
|
return $html;
|
|
@@ -223,7 +226,7 @@ class Input
|
|
}
|
|
}
|
|
$type = 'button';
|
|
$type = 'button';
|
|
$qiniu = self::qiniu($param);
|
|
$qiniu = self::qiniu($param);
|
|
- if (strstr($qiniu, 'l=1')) {
|
|
|
|
|
|
+ if (strstr($qiniu, 'l="1"')) {
|
|
$type = 'file';
|
|
$type = 'file';
|
|
|
|
|
|
$button = '<div class="layui-input" style=" position: relative;
|
|
$button = '<div class="layui-input" style=" position: relative;
|