作者 lyh

gx

@@ -373,7 +373,6 @@ class ImageController extends Controller @@ -373,7 +373,6 @@ class ImageController extends Controller
373 $image_data = json_decode($settingInfo['image_data'],true); 373 $image_data = json_decode($settingInfo['image_data'],true);
374 foreach ($image_data as $k => $v){ 374 foreach ($image_data as $k => $v){
375 if (str_starts_with($v, "image/")) { 375 if (str_starts_with($v, "image/")) {
376 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(substr($v, strlen("image/")), true) . PHP_EOL, FILE_APPEND);  
377 $v = 'image/'.urlSafeBase64Encode(substr($v, strlen("image/"))); 376 $v = 'image/'.urlSafeBase64Encode(substr($v, strlen("image/")));
378 } 377 }
379 $image_data[$k] = $v; 378 $image_data[$k] = $v;
@@ -35,6 +35,7 @@ class CosService @@ -35,6 +35,7 @@ class CosService
35 ]); 35 ]);
36 $key = $path.'/'.$filename; 36 $key = $path.'/'.$filename;
37 $Body = $binary ? $files : fopen($files->getRealPath(), 'r'); 37 $Body = $binary ? $files : fopen($files->getRealPath(), 'r');
  38 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($Body, true) . PHP_EOL, FILE_APPEND);
38 $options = [ 39 $options = [
39 'Bucket' => $cos['bucket'], 40 'Bucket' => $cos['bucket'],
40 'Key' => $key, 41 'Key' => $key,