rabin před 2 roky
rodič
revize
256ea5a861
2 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 1 0
      lib/Store/Oss.php
  2. 1 0
      lib/Store/Qiniu.php

+ 1 - 0
lib/Store/Oss.php

@@ -58,6 +58,7 @@ class Oss extends Core implements Config
     {
         if ($this->base64 && isset($this->data['local'])) {
             $data = parse_url($this->data['local']);
+            $data['path'] = str_replace(Dever::data() . 'upload/', '', $data['path']);
             $this->path = ltrim($data['path'], '/');
         }
         $this->file = $this->path . $this->name . $this->ext;

+ 1 - 0
lib/Store/Qiniu.php

@@ -70,6 +70,7 @@ class Qiniu extends Core implements Config
     {
         if ($this->base64 && isset($this->data['local'])) {
             $data = parse_url($this->data['local']);
+            $data['path'] = str_replace(Dever::data() . 'upload/', '', $data['path']);
             $this->path = ltrim($data['path'], '/');
         }
         $this->file = $this->path . $this->name . $this->ext;