@@ -23,11 +23,11 @@ discard block |
||
| 23 | 23 | $dir = pathinfo($this->object->walker->migtarionLog->source, PATHINFO_DIRNAME); |
| 24 | 24 | $this->model->image_file_id = 0; |
| 25 | 25 | foreach ($value as $key => $imagePath) { |
| 26 | - if (!$imagePath || !file_exists($dir . '/' . $imagePath)) { |
|
| 26 | + if (!$imagePath || !file_exists($dir.'/'.$imagePath)) { |
|
| 27 | 27 | continue; |
| 28 | 28 | } |
| 29 | 29 | $notEq = true; |
| 30 | - $md5Cur = md5_file($dir . '/' . $imagePath); |
|
| 30 | + $md5Cur = md5_file($dir.'/'.$imagePath); |
|
| 31 | 31 | foreach ($this->model->images as $imageId => $image) { |
| 32 | 32 | $file = $image->file; |
| 33 | 33 | $md5File = ''; |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | if ($notEq) { |
| 48 | - $file_id = \App::$primary->files->uploadFromUrl($dir . '/' . $imagePath, ['accept_group' => 'image', 'upload_code' => 'MigrationUpload']); |
|
| 48 | + $file_id = \App::$primary->files->uploadFromUrl($dir.'/'.$imagePath, ['accept_group' => 'image', 'upload_code' => 'MigrationUpload']); |
|
| 49 | 49 | $image = new \Ecommerce\Item\Image([ |
| 50 | 50 | 'item_id' => $this->model->pk(), |
| 51 | 51 | 'file_id' => $file_id |