From d60a2253688319c244dcc47d135bbf9db2494c2a Mon Sep 17 00:00:00 2001 From: lkddi Date: Sun, 1 Mar 2026 01:05:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=A5=BD=E5=8F=8B?= =?UTF-8?q?=E6=82=84=E6=82=84=E8=AF=9D=E9=93=BE=E6=8E=A5=20href=20?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E5=AD=97=E9=9D=A2=20\'#\'=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4404=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PHP 双引号字符串里单引号不需要反斜杠转义, \'#\' 会原样输出 \'#\' 而非 '#',导致 href 跳转到错误 URL。 改为直接写 '#' 即可。 --- app/Http/Controllers/FriendController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/FriendController.php b/app/Http/Controllers/FriendController.php index de1cfa1..ca8e47f 100644 --- a/app/Http/Controllers/FriendController.php +++ b/app/Http/Controllers/FriendController.php @@ -222,8 +222,8 @@ class FriendController extends Controller // 根据操作类型和互相状态生成不同文案(含内联快捷操作链接) $btnStyle = 'font-weight:bold;text-decoration:underline;margin-left:6px;'; - $btnAdd = "➕ 回加好友"; - $btnRemove = "🗑️ 同步移除"; + $btnAdd = "➕ 回加好友"; + $btnRemove = "🗑️ 同步移除"; $content = match ($action) { 'added' => $mutual