正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -209,6 +209,7 @@ class ImageController extends Controller | @@ -209,6 +209,7 @@ class ImageController extends Controller | ||
| 209 | if($this->upload_location == 0){ | 209 | if($this->upload_location == 0){ |
| 210 | $watermarkOptions = $this->getProjectConfig($this->cache['project_id'] ?? 0); | 210 | $watermarkOptions = $this->getProjectConfig($this->cache['project_id'] ?? 0); |
| 211 | $cosService = new CosService(); | 211 | $cosService = new CosService(); |
| 212 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($watermarkOptions, true) . PHP_EOL, FILE_APPEND); | ||
| 212 | $cosService->uploadFile($file,$this->path,$fileName,$watermarkOptions); | 213 | $cosService->uploadFile($file,$this->path,$fileName,$watermarkOptions); |
| 213 | }else{ | 214 | }else{ |
| 214 | //TODO::上传亚马逊 | 215 | //TODO::上传亚马逊 |
| @@ -373,7 +374,6 @@ class ImageController extends Controller | @@ -373,7 +374,6 @@ class ImageController extends Controller | ||
| 373 | $image_data = json_decode($settingInfo['image_data'],true); | 374 | $image_data = json_decode($settingInfo['image_data'],true); |
| 374 | foreach ($image_data as $k => $v){ | 375 | foreach ($image_data as $k => $v){ |
| 375 | if (str_starts_with($v, "image/")) { | 376 | if (str_starts_with($v, "image/")) { |
| 376 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($v, true) . PHP_EOL, FILE_APPEND); | ||
| 377 | $v = 'image/'.urlSafeBase64Encode(substr($v, strlen("image/"))); | 377 | $v = 'image/'.urlSafeBase64Encode(substr($v, strlen("image/"))); |
| 378 | } | 378 | } |
| 379 | $image_data[$k] = $v; | 379 | $image_data[$k] = $v; |
-
请 注册 或 登录 后发表评论