From f893a77545f196ecfafad432b9a6a6731203fd50 Mon Sep 17 00:00:00 2001 From: pushuo Date: Wed, 16 Nov 2022 09:56:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A3=85=E4=BF=AE=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=93=BE=E6=8E=A5=E6=97=A0=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20->=20https://gitee.com/beikeshop/beikeshop/issues/I?= =?UTF-8?q?61AU8=3Ffrom=3Dproject-issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Services/DesignService.php | 2 +- themes/default/layout/footer.blade.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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