|
@@ -51,17 +51,14 @@ class Qiniu extends Core implements Config
|
|
|
public function file()
|
|
|
{
|
|
|
if ($this->base64 && isset($this->data['local'])) {
|
|
|
- $this->file = $this->data['local'] . $this->name . $this->ext;
|
|
|
+ parse_url($this->data['local'], $data);
|
|
|
+ $this->file = $data['path'] . $this->name . $this->ext;
|
|
|
} else {
|
|
|
$this->file = $this->path . $this->name . $this->ext;
|
|
|
}
|
|
|
|
|
|
$this->output['file'] = $this->file;
|
|
|
- if (strstr($this->file, 'http')) {
|
|
|
- $this->output['url'] = $this->file;
|
|
|
- } else {
|
|
|
- $this->output['url'] = $this->host . $this->file;
|
|
|
- }
|
|
|
+ $this->output['url'] = $this->host . $this->file;
|
|
|
|
|
|
//$this->output['url'] = '{uploadYun}' . $this->file;
|
|
|
return $this->output['file'];
|