...
|
...
|
@@ -182,17 +182,19 @@ class Images |
|
|
$result = json_decode(file_get_contents('http://upload.static.yohobuy.com', false, $context), true);
|
|
|
if(!empty($result['data']['imagesList']))
|
|
|
{
|
|
|
$imgExtra = '?imageMogr2/thumbnail/130x130/extent/130x130/background/d2hpdGU=/position/center/quality/90';
|
|
|
$imgList = array('imgList'=>array());
|
|
|
|
|
|
if(count($file) == 1 || !is_array($file))
|
|
|
{
|
|
|
$imgList['imgList'][] = array('imgUrl' => self::getSourceUrl(current($result['data']['imagesList']), 'suggest'));
|
|
|
$imgList['imgList'][] = array('imgUrl' => self::getSourceUrl(current($result['data']['imagesList']), 'suggest') . $imgExtra);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
$img = array();
|
|
|
foreach ($result['data']['imagesList'] as $val) {
|
|
|
$img = array();
|
|
|
$img['imgUrl'] = self::getSourceUrl($val, 'suggest');
|
|
|
$img['imgUrl'] = self::getSourceUrl($val, 'suggest') . $imgExtra;
|
|
|
$imgList['imgList'][] = $img;
|
|
|
}
|
|
|
}
|
...
|
...
|
|