dever hace 4 años
padre
commit
aab9c14086
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      lib/Store/Oss.php
  2. 1 1
      lib/Store/Qiniu.php

+ 1 - 1
lib/Store/Oss.php

@@ -49,7 +49,7 @@ class Oss extends Core implements Config
     public function file()
     {
         if ($this->base64 && isset($this->data['local'])) {
-            parse_url($this->data['local'], $data);
+            $data = parse_url($this->data['local']);
             $this->file = $data['path'] . $this->name . $this->ext;
         } else {
             $this->file = $this->path . $this->name . $this->ext;

+ 1 - 1
lib/Store/Qiniu.php

@@ -51,7 +51,7 @@ class Qiniu extends Core implements Config
     public function file()
     {
         if ($this->base64 && isset($this->data['local'])) {
-            parse_url($this->data['local'], $data);
+            $data = parse_url($this->data['local']);
             $this->file = $data['path'] . $this->name . $this->ext;
         } else {
             $this->file = $this->path . $this->name . $this->ext;