Commit 05106c46 by lmf

调试代码

parent 5c2acdd7
...@@ -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);
......
...@@ -67,18 +67,18 @@ ...@@ -67,18 +67,18 @@
overflow:"hidden" overflow:"hidden"
}).children(".imgbox").css({ }).children(".imgbox").css({
"width":"100%", "width":"100%",
"height":"280px",
}).children("a").css({ }).children("a").css({
position: "absolute", position: "absolute",
left:1920, left:1920,
top:0, top:0,
"width":"100%", "width":"100%",
"height":"280px",
}).eq(0).css({ }).eq(0).css({
left:0 left:0
}).end().children("img").css({ }).end().children("img").css({
"width":"100%", "width":"100%",
"height":"280px",
}); });
} }
this._obj.init(); this._obj.init();
......
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