Commit 95d52f58 by lmf

恢复代码

parent 1a71dde2
...@@ -100,7 +100,7 @@ class GalleryManagement implements \Magento\Catalog\Api\ProductAttributeMediaGal ...@@ -100,7 +100,7 @@ class GalleryManagement implements \Magento\Catalog\Api\ProductAttributeMediaGal
$existingMediaGalleryEntries = $product->getMediaGalleryEntries(); $existingMediaGalleryEntries = $product->getMediaGalleryEntries();
if ($existingMediaGalleryEntries == null) { if ($existingMediaGalleryEntries == null) {
throw new NoSuchEntityException( throw new NoSuchEntityException(
__('No image with the provided ID was found. Verify the ID and try again.') __('No image with the provided ID was found. Verify the ID and try again 11111111111.')
); );
} }
$found = false; $found = false;
...@@ -116,7 +116,7 @@ class GalleryManagement implements \Magento\Catalog\Api\ProductAttributeMediaGal ...@@ -116,7 +116,7 @@ class GalleryManagement implements \Magento\Catalog\Api\ProductAttributeMediaGal
} }
if (!$found) { if (!$found) {
throw new NoSuchEntityException( throw new NoSuchEntityException(
__('No image with the provided ID was found. Verify the ID and try again.') __('No image with the provided ID was found. Verify the ID and try again 22222222222.')
); );
} }
$product->setMediaGalleryEntries($existingMediaGalleryEntries); $product->setMediaGalleryEntries($existingMediaGalleryEntries);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment