Commit 8f5d7685 by halweg

fix : 图片压缩

parent 31a3293a
...@@ -216,8 +216,8 @@ class ReviewInfo extends \Magento\Framework\App\Action\Action { ...@@ -216,8 +216,8 @@ class ReviewInfo extends \Magento\Framework\App\Action\Action {
$res = []; $res = [];
foreach ($collect->getItems() as $item) { foreach ($collect->getItems() as $item) {
$res['full'][] = ['url'=>$block->getFullImagePath($item), 'image_id'=>$item->getId()] ; $res['full'][] = ['url'=>$block->getResizedImagePathByLimit($item, 400), 'image_id'=>$item->getId()] ;
$res['thumb'][] = ['url'=>$block->getResizedImagePathByLimit($item, 100), 'image_id'=>$item->getId()] ; ; $res['thumb'][] = ['url'=>$block->getResizedImagePathByLimit($item, 80), 'image_id'=>$item->getId()] ; ;
} }
return $res; return $res;
} }
......
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