shish 4 rokov pred
rodič
commit
a0f7fde6ef
1 zmenil súbory, kde vykonal 10 pridanie a 0 odobranie
  1. 10 0
      app-hd/controllers/ShopExtController.php

+ 10 - 0
app-hd/controllers/ShopExtController.php

@@ -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]);
     }