作者 lyh

gx

@@ -337,6 +337,7 @@ class CosService @@ -337,6 +337,7 @@ class CosService
337 'CIProcess' => 'image/info', 337 'CIProcess' => 'image/info',
338 ]); 338 ]);
339 $info = simplexml_load_string($result['Body']); 339 $info = simplexml_load_string($result['Body']);
  340 + @file_put_contents(storage_path('logs/crop_image_error.log'), var_export($info, true) . PHP_EOL, FILE_APPEND);
340 $height = (int) $info->ImageHeight; 341 $height = (int) $info->ImageHeight;
341 if($height > $maxHeight){ 342 if($height > $maxHeight){
342 return $this->cropCosImage($pathUrl); 343 return $this->cropCosImage($pathUrl);