作者 lyh

gx

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