moonsflyer 4 tháng trước cách đây
mục cha
commit
661a209b13
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/common/service/ImageCompressService.php

+ 2 - 2
app/common/service/ImageCompressService.php

@@ -114,7 +114,7 @@ class ImageCompressService
         if (!extension_loaded('gd')) {
             throw new Exception('GD扩展未安装');
         }
-
+        outFileLog(extension_loaded('gd'),'upload_img','createImageFromType-gd');
         try {
             switch ($type) {
                 case IMAGETYPE_JPEG:
@@ -139,7 +139,7 @@ class ImageCompressService
             if (!$image) {
                 throw new Exception('创建图片资源失败,可能是内存不足或文件损坏');
             }
-
+            outFileLog($image,'upload_img','createImageFromType-$image');
             return $image;
 
         } catch (Exception $e) {