【程序目录】缩略图读取优化

This commit is contained in:
evoxwht 2022-04-27 11:40:37 +08:00
parent ae17f903c0
commit 7f9a5c2f69
3 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ class StoreIntegralController
]);
$where['is_show'] = 1;
$list = $this->services->getIntegralList($where);
return app('json')->successful(get_thumb_water($list));
return app('json')->successful(get_thumb_water($list, 'mid'));
}
/**

View File

@ -67,10 +67,10 @@ class StoreProductController
if (!$where['ids']) {
unset($where['ids']);
}
$type = 'mid';
$type = 'big';
$field = ['image', 'recommend_image'];
if ($where['store_name']) {
$type = 'small';
$type = 'big';
$field = ['image'];
}
$list = $this->services->getGoodsList($where, (int)$request->uid());

View File

@ -43,7 +43,7 @@ class HomeServices extends BaseServices
$item['star'] = '3.0';
}
}
$info['productList'] = get_thumb_water($productList, 'mid');
$info['productList'] = get_thumb_water($productList, 'big');
}
$data['list'] = array_merge($list);
$data['count'] = $category->getCidCount();