From a5d9de5736216f14781f8c53dc707e18a1ccbe86 Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Sat, 28 Feb 2026 12:29:15 +0800 Subject: [PATCH] f --- server/如何检测.md | 22 ++++++++++++++- src/components/BindPhoneDialog.vue | 40 +++++++++++++++------------ src/components/RealNameAuthDialog.vue | 31 ++++++++++++--------- 3 files changed, 61 insertions(+), 32 deletions(-) diff --git a/server/如何检测.md b/server/如何检测.md index f7338c0..dc6555e 100644 --- a/server/如何检测.md +++ b/server/如何检测.md @@ -59,7 +59,27 @@ $env:SEO_TEST_URL="https://www.xingfucha.cn"; node test-seo.js curl -s -A "Baiduspider/2.0" http://localhost:3000/ | findstr /i "title description keywords canonical" ``` -应能看到包含「幸福查」的 title,以及 description、keywords、canonical 等标签。 +应能看到包含「天远数据」的 title,以及 description、keywords、canonical 等标签。 + +**Windows 下中文乱码说明**:服务器返回的是 UTF-8,CMD 默认是 GBK,直接 `curl … | findstr` 会看到乱码(如 `澶╄繙鏁版嵁`)或出现 “FINDSTR: 写入错误”。可任选一种方式解决: + +```cmd +:: 方式 1:先切到 UTF-8 再执行(CMD) +chcp 65001 +curl -s -A "Baiduspider/2.0" https://www.tianyuandb.com/ | findstr /i "title description" +``` + +```powershell +# 方式 2:PowerShell 下指定输出编码 +[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 +curl -s -A "Baiduspider/2.0" https://www.tianyuandb.com/ | Select-String -Pattern "title|description" +``` + +```cmd +:: 方式 3:保存到文件后用编辑器打开(任意编码都行) +curl -s -A "Baiduspider/2.0" https://www.tianyuandb.com/ -o seo-test.html +:: 用记事本/VSCode 打开 seo-test.html,选 UTF-8 即可看到正确中文 +``` ```bash # 看完整 HTML 前几行(含
) diff --git a/src/components/BindPhoneDialog.vue b/src/components/BindPhoneDialog.vue index 972b45e..d0a539a 100644 --- a/src/components/BindPhoneDialog.vue +++ b/src/components/BindPhoneDialog.vue @@ -1,8 +1,11 @@