瀏覽代碼

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

evoxwht 3 年之前
父節點
當前提交
7f9a5c2f69

+ 1 - 1
crmeb/app/api/controller/v1/activity/StoreIntegralController.php

@@ -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'));
     }
 
     /**

+ 2 - 2
crmeb/app/api/controller/v1/store/StoreProductController.php

@@ -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());

+ 1 - 1
crmeb/app/services/pc/HomeServices.php

@@ -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();