dever 4 years ago
parent
commit
2055653fd0
2 changed files with 2 additions and 14 deletions
  1. 1 7
      lib/Store/Oss.php
  2. 1 7
      lib/Store/Qiniu.php

+ 1 - 7
lib/Store/Oss.php

@@ -48,13 +48,7 @@ class Oss 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;

+ 1 - 7
lib/Store/Qiniu.php

@@ -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;