dever 4 年之前
父节点
当前提交
2055653fd0
共有 2 个文件被更改,包括 2 次插入14 次删除
  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()
     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['file'] = $this->file;
         $this->output['url'] = $this->host . $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()
     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['file'] = $this->file;
         $this->output['url'] = $this->host . $this->file;
         $this->output['url'] = $this->host . $this->file;