|
|
@@ -23,6 +23,16 @@ class ShopExtController extends BaseController
|
|
|
GhsClass::valid($ghs, $this->shopId);
|
|
|
$shopId = $ghs->shopId ?? 0;
|
|
|
$list = XjClass::getAllByCondition(['shopId' => $shopId, 'delStatus' => 0, 'status' => 1], null, '*');
|
|
|
+ if (!empty($list)) {
|
|
|
+ foreach ($list as $key => $val) {
|
|
|
+ $shortCover = $val['cover'] ?? '';
|
|
|
+ $cover = imgUtil::groupImg($shortCover) . "?x-oss-process=image/resize,m_fill,h_130,w_130";
|
|
|
+ $bigCover = imgUtil::groupImg($shortCover) . "?x-oss-process=image/resize,m_fill,h_700,w_700";
|
|
|
+ $list[$key]['cover'] = $cover;
|
|
|
+ $list[$key]['bigCover'] = $bigCover;
|
|
|
+ $list[$key]['shortCover'] = $shortCover;
|
|
|
+ }
|
|
|
+ }
|
|
|
util::success(['list' => $list]);
|
|
|
}
|
|
|
|