|
@@ -52,10 +52,9 @@ class Qiniu extends Core implements Config
|
|
|
{
|
|
|
if ($this->base64 && isset($this->data['local'])) {
|
|
|
$data = parse_url($this->data['local']);
|
|
|
- $this->file = $data['path'] . $this->name . $this->ext;
|
|
|
- } else {
|
|
|
- $this->file = $this->path . $this->name . $this->ext;
|
|
|
+ $this->path = ltrim($data['path'], '/');
|
|
|
}
|
|
|
+ $this->file = $this->path . $this->name . $this->ext;
|
|
|
|
|
|
$this->output['file'] = $this->file;
|
|
|
$this->output['url'] = $this->host . $this->file;
|