|
...
|
...
|
@@ -372,12 +372,12 @@ class ImageController extends Controller |
|
|
|
if($settingInfo['status'] == 1 && !empty($settingInfo['image_data'])){
|
|
|
|
$image_data = json_decode($settingInfo['image_data'],true);
|
|
|
|
foreach ($image_data as $k => $v){
|
|
|
|
$arr = implode('/',$v);
|
|
|
|
if ($arr[0] == 'image') {
|
|
|
|
$arr[1] = urlSafeBase64Encode($arr[1]);
|
|
|
|
if (str_starts_with($v, "image/")) {
|
|
|
|
$v = 'image/'.urlSafeBase64Encode(substr($v, strlen("image/")));
|
|
|
|
}
|
|
|
|
$image_data[$k] = $arr;
|
|
|
|
$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'])){
|
...
|
...
|
|