作者 lyh

gx

... ... @@ -373,11 +373,11 @@ 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($v, true) . PHP_EOL, FILE_APPEND);
$v = 'image/'.urlSafeBase64Encode(substr($v, strlen("image/")));
}
$image_data[$k] = $v;
}
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($image_data, true) . PHP_EOL, FILE_APPEND);
return $image_data;
}
if($settingInfo['status'] == 2 && !empty($settingInfo['str_data'])){
... ...