dever %!s(int64=4) %!d(string=hai) anos
pai
achega
aab9c14086
Modificáronse 2 ficheiros con 2 adicións e 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;