|
@@ -477,7 +477,12 @@ class Import
|
|
|
private function upload($file)
|
|
|
{
|
|
|
if ($file && strstr($file, 'http') && !strstr($file, '7.churenyiliao')) {
|
|
|
- return Dever::load('upload/save')->copy($file, 9);
|
|
|
+ $data = Dever::load('upload/save')->copy($file, 9);
|
|
|
+ if (isset($data['url'])) {
|
|
|
+ return $data['url'];
|
|
|
+ } else {
|
|
|
+ return $file;
|
|
|
+ }
|
|
|
} else {
|
|
|
return $file;
|
|
|
}
|