소스 검색

修复调用相册的BUG

moshaorui 3 주 전
부모
커밋
45dc111e90
2개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 4 4
      app/Admin/Controllers/ImportProductController.php
  2. 3 3
      app/Distributor/Controllers/SiteAlbumController.php

+ 4 - 4
app/Admin/Controllers/ImportProductController.php

@@ -162,7 +162,7 @@ class ImportProductController extends AdminController
             })->unescape();
             $show->field('cover')->as(function ($images) {
                 $images = json_decode($images);
-                return CommonHelper::displayImage($images,150);
+                return CommonHelper::displayImage($images,150,1024,2);
             })->unescape();
 
             $show->field('en_detail')->as(function ($images) {
@@ -194,17 +194,17 @@ class ImportProductController extends AdminController
 
             $show->field('poster')->as(function ($images) {
                 $images = json_decode($images);
-                return CommonHelper::displayImage($images,150);
+                return CommonHelper::displayImage($images,150,1024,2);
             })->unescape();
 
             $show->field('cert')->as(function ($images) {
                 $images = json_decode($images);
-                return CommonHelper::displayImage($images,150);
+                return CommonHelper::displayImage($images,150,1024,2);
             })->unescape();
 
             $show->field('cert')->as(function ($images) {
                 $images = json_decode($images);
-                return CommonHelper::displayImage($images,150);
+                return CommonHelper::displayImage($images,150,1024,2);
             })->unescape();
 
             $show->field('pdf')->as(function ($items) {

+ 3 - 3
app/Distributor/Controllers/SiteAlbumController.php

@@ -149,7 +149,7 @@ class SiteAlbumController extends AdminController
             if (empty($show->model()->cover) == false && $show->model()->cover!= '[]') {
                 $show->field('cover')->as(function ($images) {
                     $images = json_decode($images);
-                    return CommonHelper::displayImage($images,150);
+                    return CommonHelper::displayImage($images,150,1024,2);
                 })->unescape();
             }
             //详情
@@ -178,14 +178,14 @@ class SiteAlbumController extends AdminController
             if (empty($show->model()->poster) == false && $show->model()->poster!= '[]') {
                 $show->field('poster')->as(function ($images) {
                     $images = json_decode($images);
-                    return CommonHelper::displayImage($images,150);
+                    return CommonHelper::displayImage($images,150,1024,2);
                 })->unescape();
             }
             //证书
             if (empty($show->model()->cert) == false && $show->model()->cert != '[]') {
                 $show->field('cert')->as(function ($images) {
                     $images = json_decode($images);
-                    return CommonHelper::displayImage($images,150);
+                    return CommonHelper::displayImage($images,150,1024,2);
                 })->unescape();
             }
             //PDF