|
@@ -245,10 +245,10 @@ class Core
|
|
|
$this->data['name'] = $this->data['file']['name'];
|
|
|
} else {
|
|
|
$filename = md5($this->data['pic']) . '.' . pathinfo($this->data['pic'], PATHINFO_EXTENSION);
|
|
|
+ $this->path();
|
|
|
$file = $this->base . $this->data['key'] . $this->path . $filename;
|
|
|
if (!is_file($file)) {
|
|
|
$content = Dever::curl($name);
|
|
|
- $this->path();
|
|
|
file_put_contents($file, $content);
|
|
|
}
|
|
|
|