|
@@ -50,13 +50,7 @@ class Qiniu extends Core implements Config
|
|
|
|
|
|
public function file()
|
|
|
{
|
|
|
- if ($this->base64) {
|
|
|
- $data = pathinfo($this->data['pic']);
|
|
|
- $data['dirname'] = str_replace($this->host, '', $data['dirname']);
|
|
|
- $this->file = $data['dirname'] . '/' . $data['basename'] . $this->name . $this->ext;
|
|
|
- } else {
|
|
|
- $this->file = $this->path . $this->name . $this->ext;
|
|
|
- }
|
|
|
+ $this->file = $this->path . $this->name . $this->ext;
|
|
|
|
|
|
$this->output['file'] = $this->file;
|
|
|
$this->output['url'] = $this->host . $this->file;
|