@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $prefix = ltrim($prefix, '/'); |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - $callbackParam = [ |
|
| 168 | + $callbackParam = [ |
|
| 169 | 169 | 'callbackUrl' => $callBackUrl, |
| 170 | 170 | 'callbackBody' => 'filename=${object}&size=${size}&mimeType=${mimeType}&height=${imageInfo.height}&width=${imageInfo.width}', |
| 171 | 171 | 'callbackBodyType' => 'application/x-www-form-urlencoded', |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | $expiration = $this->gmt_iso8601($end); |
| 179 | 179 | |
| 180 | 180 | // 最大文件大小.用户可以自己设置 |
| 181 | - $condition = [ |
|
| 181 | + $condition = [ |
|
| 182 | 182 | 0 => 'content-length-range', |
| 183 | 183 | 1 => 0, |
| 184 | 184 | 2 => $contentLengthRangeValue, |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | ]; |
| 193 | 193 | $conditions[] = $start; |
| 194 | 194 | |
| 195 | - $arr = [ |
|
| 195 | + $arr = [ |
|
| 196 | 196 | 'expiration' => $expiration, |
| 197 | 197 | 'conditions' => $conditions, |
| 198 | 198 | ]; |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | $response['signature'] = $signature; |
| 209 | 209 | $response['expire'] = $end; |
| 210 | 210 | $response['callback'] = $base64_callback_body; |
| 211 | - $response['dir'] = $prefix; // 这个参数是设置用户上传文件时指定的前缀。 |
|
| 211 | + $response['dir'] = $prefix; // 这个参数是设置用户上传文件时指定的前缀。 |
|
| 212 | 212 | |
| 213 | 213 | return json_encode($response); |
| 214 | 214 | } |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | { |
| 460 | 460 | $path = $this->applyPathPrefix($path); |
| 461 | 461 | |
| 462 | - return $this->normalizeHost() . ltrim($path, '/'); |
|
| 462 | + return $this->normalizeHost().ltrim($path, '/'); |
|
| 463 | 463 | } |
| 464 | 464 | |
| 465 | 465 | /** |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | if ($this->isCName) { |
| 594 | 594 | $domain = $this->endpoint; |
| 595 | 595 | } else { |
| 596 | - $domain = $this->bucket . '.' . $this->endpoint; |
|
| 596 | + $domain = $this->bucket.'.'.$this->endpoint; |
|
| 597 | 597 | } |
| 598 | 598 | |
| 599 | 599 | if ($this->useSSL) { |
@@ -602,7 +602,7 @@ discard block |
||
| 602 | 602 | $domain = "http://{$domain}"; |
| 603 | 603 | } |
| 604 | 604 | |
| 605 | - return rtrim($domain, '/') . '/'; |
|
| 605 | + return rtrim($domain, '/').'/'; |
|
| 606 | 606 | } |
| 607 | 607 | |
| 608 | 608 | /** |