合并分支 'lyh-server' 到 'master'
gx 查看合并请求 !1939
正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -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); |
-
请 注册 或 登录 后发表评论