diff --git a/beike/Services/DesignService.php b/beike/Services/DesignService.php index f5ea5dab..6da1e645 100644 --- a/beike/Services/DesignService.php +++ b/beike/Services/DesignService.php @@ -156,7 +156,7 @@ class DesignService } $type = $link['type'] ?? ''; - $value = (int)$link['value'] ?? 0; + $value = $link['type'] == 'custom' ? $link['value'] : ((int)$link['value'] ?? 0); $images[$index]['link']['link'] = self::handleLink($type, $value); } diff --git a/themes/default/layout/footer.blade.php b/themes/default/layout/footer.blade.php index 3a3d8244..2fa748db 100644 --- a/themes/default/layout/footer.blade.php +++ b/themes/default/layout/footer.blade.php @@ -29,7 +29,6 @@
{!! $footer_content['content']['intro']['text'][$locale] ?? '' !!}
- @for ($i = 1; $i <= 3; $i++) @php $link = $footer_content['content']['link' . $i]; @@ -41,7 +40,7 @@ @if ($item['link'])
  • - {{ $item['type'] == 'custom' ? $item['text'][$locale] ?? '' : $item['text'] }} + {{ $item['text'] }}
  • @endif