From 91dbc161a0759940b60e4c3d4648d3fcc9b69b40 Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Sat, 28 Feb 2026 16:47:46 +0800 Subject: [PATCH] ff --- public/seo-templates/agent.html | 119 +++++++++ public/seo-templates/example.html | 119 +++++++++ public/seo-templates/help-guide.html | 119 +++++++++ public/seo-templates/help.html | 119 +++++++++ public/seo-templates/index.html | 119 +++++++++ public/seo-templates/inquire-companyinfo.html | 119 +++++++++ public/seo-templates/inquire-marriage.html | 119 +++++++++ .../seo-templates/inquire-riskassessment.html | 119 +++++++++ public/seo-templates/promote.html | 119 +++++++++ public/seo-templates/service.html | 119 +++++++++ server/DEPLOY.md | 214 ++++++++++++++++ server/generate-seo-templates.cjs | 242 ++++++++++++++++++ server/nginx-baota.conf | 141 ++++++++++ server/package.json | 16 ++ src/components/BindPhoneDialog.vue | 44 ++-- src/components/RealNameAuthDialog.vue | 31 ++- 16 files changed, 1851 insertions(+), 27 deletions(-) create mode 100644 public/seo-templates/agent.html create mode 100644 public/seo-templates/example.html create mode 100644 public/seo-templates/help-guide.html create mode 100644 public/seo-templates/help.html create mode 100644 public/seo-templates/index.html create mode 100644 public/seo-templates/inquire-companyinfo.html create mode 100644 public/seo-templates/inquire-marriage.html create mode 100644 public/seo-templates/inquire-riskassessment.html create mode 100644 public/seo-templates/promote.html create mode 100644 public/seo-templates/service.html create mode 100644 server/DEPLOY.md create mode 100644 server/generate-seo-templates.cjs create mode 100644 server/nginx-baota.conf create mode 100644 server/package.json diff --git a/public/seo-templates/agent.html b/public/seo-templates/agent.html new file mode 100644 index 0000000..11f26d5 --- /dev/null +++ b/public/seo-templates/agent.html @@ -0,0 +1,119 @@ + + + + + + + + + 智能查代理 - 免费开通代理权限 | 大数据风险报告代理 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

智能查代理 - 免费开通代理权限 | 大数据风险报告代理

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

智能查代理平台,免费开通代理权限,享受大数据风险报告查询服务代理收益。专业的大数据风险报告、婚姻查询、个人信用评估等服务的代理合作。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/public/seo-templates/example.html b/public/seo-templates/example.html new file mode 100644 index 0000000..c6b49f2 --- /dev/null +++ b/public/seo-templates/example.html @@ -0,0 +1,119 @@ + + + + + + + + + 示例报告 - 智能查报告展示 | 大数据风险报告样例 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

示例报告 - 智能查报告展示 | 大数据风险报告样例

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

智能查示例报告展示,包含大数据风险报告、婚姻状况查询、个人信用评估等服务的报告样例,让用户了解报告内容和格式。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/public/seo-templates/help-guide.html b/public/seo-templates/help-guide.html new file mode 100644 index 0000000..0860684 --- /dev/null +++ b/public/seo-templates/help-guide.html @@ -0,0 +1,119 @@ + + + + + + + + + 使用指南 - 智能查操作教程 | 功能说明 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

使用指南 - 智能查操作教程 | 功能说明

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

智能查详细使用指南,包含各功能模块的操作教程、功能说明、注意事项等,让用户快速上手使用。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/public/seo-templates/help.html b/public/seo-templates/help.html new file mode 100644 index 0000000..88b1608 --- /dev/null +++ b/public/seo-templates/help.html @@ -0,0 +1,119 @@ + + + + + + + + + 帮助中心 - 智能查使用指南 | 常见问题解答 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

帮助中心 - 智能查使用指南 | 常见问题解答

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

智能查帮助中心,提供详细的使用指南、常见问题解答、操作教程等,帮助用户更好地使用大数据风险报告查询服务。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/public/seo-templates/index.html b/public/seo-templates/index.html new file mode 100644 index 0000000..6ffa7e4 --- /dev/null +++ b/public/seo-templates/index.html @@ -0,0 +1,119 @@ + + + + + + + + + 智能查|大数据风险报告查询与代理平台,支持个人和企业多场景风控应用 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

智能查|大数据风险报告查询与代理平台,支持个人和企业多场景风控应用

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

智能查,专业大数据风险报告查询与代理平台,支持个人信用查询、小微企业风控、贷前风险背调等多场景报告应用,免费开通代理权限,助力高效识别信用与风险。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/public/seo-templates/inquire-companyinfo.html b/public/seo-templates/inquire-companyinfo.html new file mode 100644 index 0000000..d81fc10 --- /dev/null +++ b/public/seo-templates/inquire-companyinfo.html @@ -0,0 +1,119 @@ + + + + + + + + + 商业背景真实性核验_企业主经营实力与司法风险_智能查 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

商业背景真实性核验_企业主经营实力与司法风险_智能查

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

智能查企业版助您鉴别商业背景的真实性。一键核验目标对象的名下关联企业、工商变更记录、司法被执行信息及股权冻结状况。全方位评估经营实力与法律风险,规避商业合作或家庭资产联保隐患。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/public/seo-templates/inquire-marriage.html b/public/seo-templates/inquire-marriage.html new file mode 100644 index 0000000..56ceabe --- /dev/null +++ b/public/seo-templates/inquire-marriage.html @@ -0,0 +1,119 @@ + + + + + + + + + 婚前综合背景了解_涉婚司法风险评估_情感诚意度报告_智能查 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

婚前综合背景了解_涉婚司法风险评估_情感诚意度报告_智能查

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

智能查婚恋报告基于公开司法大数据,提供客观的婚前背景参考。深度评估对象的涉婚法律诉讼、失信被执行历史及社会不良标签。旨在消除信息不对称,辅助用户建立透明、安全的婚姻基础。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/public/seo-templates/inquire-riskassessment.html b/public/seo-templates/inquire-riskassessment.html new file mode 100644 index 0000000..95ce204 --- /dev/null +++ b/public/seo-templates/inquire-riskassessment.html @@ -0,0 +1,119 @@ + + + + + + + + + 个人综合履约能力画像_多维风险指数检测_信用健康度_智能查 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

个人综合履约能力画像_多维风险指数检测_信用健康度_智能查

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

深度解析个人履约能力综合状况,辅助用户进行风险自查。报告维度包含历史履约趋势、多维生活经营风险指数及关联负面标签。数据客观中立,实时更新,帮助用户优化个人资信档案,提升生活经营能力。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/public/seo-templates/promote.html b/public/seo-templates/promote.html new file mode 100644 index 0000000..4bb5256 --- /dev/null +++ b/public/seo-templates/promote.html @@ -0,0 +1,119 @@ + + + + + + + + + 智能查合作伙伴计划_婚恋行业数字化风控解决方案_渠道招募 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

智能查合作伙伴计划_婚恋行业数字化风控解决方案_渠道招募

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

智能查开放全国渠道合作,为婚介机构及情感咨询师提供专业的数据化风控工具。一键接入婚恋风险评估系统,支持推广海报生成与多级数据管理。正规项目,赋能合作伙伴,共同挖掘婚恋市场的合规商业价值。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/public/seo-templates/service.html b/public/seo-templates/service.html new file mode 100644 index 0000000..687c548 --- /dev/null +++ b/public/seo-templates/service.html @@ -0,0 +1,119 @@ + + + + + + + + + 客服中心 - 智能查在线客服 | 技术支持 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

客服中心 - 智能查在线客服 | 技术支持

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

智能查客服中心,提供在线客服支持、技术咨询、问题反馈等服务,确保用户获得及时有效的帮助。

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + + \ No newline at end of file diff --git a/server/DEPLOY.md b/server/DEPLOY.md new file mode 100644 index 0000000..70d3c07 --- /dev/null +++ b/server/DEPLOY.md @@ -0,0 +1,214 @@ +# 智能查 SEO 服务部署指南(纯 Nginx 方案) + +## 方案说明 + +使用纯 Nginx 配置实现爬虫检测,无需 Node.js 服务器。 + +**工作原理:** +``` +请求 → Nginx 检测 User-Agent + ├─ 是爬虫 → 返回静态 SEO HTML 模板 + └─ 普通用户 → 返回 SPA 应用 +``` + +## 部署步骤 + +### 1. 构建前端项目 + +```bash +cd /www/wwwroot/zhinengcha.cn +npm run build +``` + +### 2. 生成 SEO 模板到 dist 目录 + +```bash +cd /www/wwwroot/zhinengcha.cn/server +node generate-seo-templates.cjs +``` + +生成后目录结构: +``` +dist/ +├── index.html +├── assets/ +└── seo-templates/ + ├── index.html + ├── agent.html + ├── help.html + ├── ... +``` + +### 3. 修改 Nginx 配置 + +将以下配置复制到宝塔面板的站点配置中: + +```nginx +server +{ + listen 80; + listen 443 ssl; + listen 443 quic; + listen [::]:443 ssl; + listen [::]:443 quic; + http2 on; + listen [::]:80; + server_name zhinengcha.cn www.zhinengcha.cn p.zhenaicha.cn; + index index.html index.htm default.htm default.html; + root /www/wwwroot/zhinengcha.cn/dist; + #CERT-APPLY-CHECK--START + # 用于SSL证书申请时的文件验证相关配置 -- 请勿删除并保持这段设置在优先级高的位置 + include /www/server/panel/vhost/nginx/well-known/zhinengcha.cn.conf; + #CERT-APPLY-CHECK--END + + #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则 + #error_page 404/404.html; + ssl_certificate /www/server/panel/vhost/cert/zhinengcha.cn/fullchain.pem; + ssl_certificate_key /www/server/panel/vhost/cert/zhinengcha.cn/privkey.pem; + ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; + ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; + ssl_prefer_server_ciphers on; + ssl_session_tickets on; + ssl_session_cache shared:SSL:10m; + ssl_session_timeout 10m; + add_header Strict-Transport-Security "max-age=31536000"; + add_header Alt-Svc 'quic=":443"; h3=":443"; h3-29=":443"; h3-27=":443";h3-25=":443"; h3-T050=":443"; h3-Q050=":443";h3-Q049=":443";h3-Q048=":443"; h3-Q046=":443"; h3-Q043=":443"'; + error_page 497 https://$host$request_uri; + + #SSL-END + + #ERROR-PAGE-START 错误页配置,可以注释、删除或修改 + #error_page 404 /404.html; + #error_page 502 /502.html; + #ERROR-PAGE-END + + #REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效 + include /www/server/panel/vhost/rewrite/html_zhinengcha.cn.conf; + #REWRITE-END + + #禁止访问的文件或目录 + location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md) + { + return 404; + } + + #一键申请SSL证书验证目录相关设置 + location ~ \.well-known{ + allow all; + } + + # API 代理 + location /api/v1 { + proxy_pass http://127.0.0.1:21004; + proxy_set_header Host 127.0.0.1:$server_port; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header REMOTE-HOST $remote_addr; + add_header X-Cache $upstream_cache_status; + proxy_set_header X-Host $host:$server_port; + proxy_set_header X-Scheme $scheme; + proxy_connect_timeout 30s; + proxy_read_timeout 86400s; + proxy_send_timeout 30s; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } + + # 前端路由处理 - 爬虫检测返回静态SEO页面 + location / { + set $seo_page 0; + # 检测常见爬虫 User-Agent + if ($http_user_agent ~* "(baiduspider|googlebot|bingbot|msnbot|360spider|sogou|youdaobot|twitterbot|facebookexternalhit|linkedinbot|bytespider)") { + set $seo_page 1; + } + # 如果是爬虫,返回对应的 SEO 静态页面 + if ($seo_page = 1) { + rewrite ^/$ /seo-templates/index.html last; + } + if ($seo_page = 1) { + rewrite ^/agent$ /seo-templates/agent.html last; + } + if ($seo_page = 1) { + rewrite ^/help$ /seo-templates/help.html last; + } + if ($seo_page = 1) { + rewrite ^/help/guide$ /seo-templates/help-guide.html last; + } + if ($seo_page = 1) { + rewrite ^/example$ /seo-templates/example.html last; + } + if ($seo_page = 1) { + rewrite ^/service$ /seo-templates/service.html last; + } + if ($seo_page = 1) { + rewrite ^/inquire/riskassessment$ /seo-templates/inquire-riskassessment.html last; + } + if ($seo_page = 1) { + rewrite ^/inquire/companyinfo$ /seo-templates/inquire-companyinfo.html last; + } + if ($seo_page = 1) { + rewrite ^/inquire/marriage$ /seo-templates/inquire-marriage.html last; + } + if ($seo_page = 1) { + rewrite ^/promote$ /seo-templates/promote.html last; + } + # 普通用户返回 SPA + try_files $uri $uri/ /index.html; + } + + # SEO 静态模板目录 + location /seo-templates { + root /www/wwwroot/zhinengcha.cn/dist; + internal; + } + + #禁止在证书验证目录放入敏感文件 + if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) { + return 403; + } + + location ~ .*\\.(gif|jpg|jpeg|png|bmp|swf)$ + { + expires 30d; + error_log /dev/null; + access_log /dev/null; + } + + location ~ .*\\.(js|css)?$ + { + expires 12h; + error_log /dev/null; + access_log /dev/null; + } + access_log /www/wwwlogs/zhinengcha.cn.log; + error_log /www/wwwlogs/zhinengcha.cn.error.log; +} +``` + +### 4. 重载 Nginx + +```bash +nginx -t && nginx -s reload +``` + +## 验证部署 + +```bash +# 模拟百度爬虫访问首页 +curl -A "Mozilla/5.0 (compatible; Baiduspider/2.0)" https://www.zhinengcha.cn/ + +# 模拟 Google 爬虫访问首页 +curl -A "Mozilla/5.0 (compatible; Googlebot/2.1)" https://www.zhinengcha.cn/ + +# 普通浏览器访问(应返回 SPA) +curl -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0.0.0" https://www.zhinengcha.cn/ +``` + +## 更新 SEO 配置 + +当修改 `useSEO.js` 中的 TDK 配置后: + +1. 同步更新 `server/generate-seo-templates.cjs` 中的 `pageSEOConfigs` +2. 重新生成模板:`node generate-seo-templates.cjs` +3. 重新部署 `dist` 目录 diff --git a/server/generate-seo-templates.cjs b/server/generate-seo-templates.cjs new file mode 100644 index 0000000..44b8c1a --- /dev/null +++ b/server/generate-seo-templates.cjs @@ -0,0 +1,242 @@ +/** + * SEO模板生成器 + * 根据路由配置自动生成静态HTML模板 + */ + +const fs = require('fs') +const path = require('path') + +// 页面SEO配置(与useSEO.js保持一致) +const pageSEOConfigs = { + 'index.html': { + title: '智能查|大数据风险报告查询与代理平台,支持个人和企业多场景风控应用', + description: '智能查,专业大数据风险报告查询与代理平台,支持个人信用查询、小微企业风控、贷前风险背调等多场景报告应用,免费开通代理权限,助力高效识别信用与风险。', + keywords: '大数据风险报告查询、大数据风险评估、大数据分析报告、个人大数据风险查询、小微企业风险、贷前风险背调、代理管理平台、免费开通代理、风险管控平台、信用风险分析、企业风险报告、贷前信用审核、失信人名单查询、被执行人信息、信用黑名单查询', + url: 'https://www.zhinengcha.cn' + }, + 'agent.html': { + title: '智能查代理 - 免费开通代理权限 | 大数据风险报告代理', + description: '智能查代理平台,免费开通代理权限,享受大数据风险报告查询服务代理收益。专业的大数据风险报告、婚姻查询、个人信用评估等服务的代理合作。', + keywords: '智能查代理, 免费代理, 大数据风险报告代理, 代理权限, 代理收益', + url: 'https://www.zhinengcha.cn/agent' + }, + 'help.html': { + title: '帮助中心 - 智能查使用指南 | 常见问题解答', + description: '智能查帮助中心,提供详细的使用指南、常见问题解答、操作教程等,帮助用户更好地使用大数据风险报告查询服务。', + keywords: '智能查帮助, 使用指南, 常见问题, 操作教程, 客服支持', + url: 'https://www.zhinengcha.cn/help' + }, + 'help-guide.html': { + title: '使用指南 - 智能查操作教程 | 功能说明', + description: '智能查详细使用指南,包含各功能模块的操作教程、功能说明、注意事项等,让用户快速上手使用。', + keywords: '使用指南, 操作教程, 功能说明, 快速上手, 智能查教程', + url: 'https://www.zhinengcha.cn/help/guide' + }, + 'example.html': { + title: '示例报告 - 智能查报告展示 | 大数据风险报告样例', + description: '智能查示例报告展示,包含大数据风险报告、婚姻状况查询、个人信用评估等服务的报告样例,让用户了解报告内容和格式。', + keywords: '示例报告, 报告展示, 报告样例, 大数据风险报告, 婚姻查询报告', + url: 'https://www.zhinengcha.cn/example' + }, + 'service.html': { + title: '客服中心 - 智能查在线客服 | 技术支持', + description: '智能查客服中心,提供在线客服支持、技术咨询、问题反馈等服务,确保用户获得及时有效的帮助。', + keywords: '客服中心, 在线客服, 技术支持, 问题反馈, 智能查客服', + url: 'https://www.zhinengcha.cn/service' + }, + 'inquire-riskassessment.html': { + title: '个人综合履约能力画像_多维风险指数检测_信用健康度_智能查', + description: '深度解析个人履约能力综合状况,辅助用户进行风险自查。报告维度包含历史履约趋势、多维生活经营风险指数及关联负面标签。数据客观中立,实时更新,帮助用户优化个人资信档案,提升生活经营能力。', + keywords: '个人风险画像,履约能力评估,综合风险指数,信用健康体检,个人数据分析', + url: 'https://www.zhinengcha.cn/inquire/riskassessment' + }, + 'inquire-companyinfo.html': { + title: '商业背景真实性核验_企业主经营实力与司法风险_智能查', + description: '智能查企业版助您鉴别商业背景的真实性。一键核验目标对象的名下关联企业、工商变更记录、司法被执行信息及股权冻结状况。全方位评估经营实力与法律风险,规避商业合作或家庭资产联保隐患。', + keywords: '商业背景核验,企业主信用评估,公司经营风险,工商信息核验,资产风险评估', + url: 'https://www.zhinengcha.cn/inquire/companyinfo' + }, + 'inquire-marriage.html': { + title: '婚前综合背景了解_涉婚司法风险评估_情感诚意度报告_智能查', + description: '智能查婚恋报告基于公开司法大数据,提供客观的婚前背景参考。深度评估对象的涉婚法律诉讼、失信被执行历史及社会不良标签。旨在消除信息不对称,辅助用户建立透明、安全的婚姻基础。', + keywords: '婚前背景核验,恋爱对象风险,婚姻司法记录,情感互信报告,家庭履约风险', + url: 'https://www.zhinengcha.cn/inquire/marriage' + }, + 'promote.html': { + title: '智能查合作伙伴计划_婚恋行业数字化风控解决方案_渠道招募', + description: '智能查开放全国渠道合作,为婚介机构及情感咨询师提供专业的数据化风控工具。一键接入婚恋风险评估系统,支持推广海报生成与多级数据管理。正规项目,赋能合作伙伴,共同挖掘婚恋市场的合规商业价值。', + keywords: '婚恋行业合作,情感咨询工具,风控系统代理,渠道合作伙伴,婚介数据服务', + url: 'https://www.zhinengcha.cn/promote' + } +} + +/** + * 规范化文案:移除损坏字符(U+FFFD),统一为中文标点,避免乱码 + */ +function normalizeText(str) { + if (typeof str !== 'string') return str + return str + .replace(/\uFFFD/g, '') // 移除 UTF-8 替换符(乱码) + .replace(/。/g, '。') + .replace(/、/g, '、') +} + +/** + * 生成HTML模板 + */ +function generateHTMLTemplate(config) { + const title = normalizeText(config.title) + const description = normalizeText(config.description) + const keywords = normalizeText(config.keywords) + const structuredData = { + "@context": "https://schema.org", + "@type": "WebPage", + "name": title, + "description": description, + "url": config.url, + "mainEntity": { + "@type": "Organization", + "name": "智能查", + "url": "https://www.zhinengcha.cn/", + "description": "专业大数据风险报告查询与代理平台,支持个人和企业多场景风控应用" + } + } + + return ` + + + + + + + + ${title} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

${title}

+ +
+

正在跳转到完整版网站...

+

如果浏览器没有自动跳转,请 点击这里

+
+ +

${description}

+ + +
+

关于智能查

+

智能查是专业的大数据风险报告查询与代理平台,提供全方位的风险查询服务。我们的核心使命是帮助用户高效识别信用与风险。

+
+ +
+

核心服务

+ +
+ +
+

为什么选择智能查

+

智能查依托大数据技术,为用户提供准确、及时的婚恋风险评估报告,帮助您做出明智决策。

+
+
+ + + +` +} + +/** + * 主函数 + */ +function main() { + const outputDir = path.join(__dirname, '../dist/seo-templates') + + // 创建输出目录 + if (!fs.existsSync(outputDir)) { + fs.mkdirSync(outputDir, { recursive: true }) + console.log(`✓ 创建模板目录: ${outputDir}`) + } + + // 生成所有模板文件 + let successCount = 0 + Object.entries(pageSEOConfigs).forEach(([filename, config]) => { + const htmlContent = generateHTMLTemplate(config) + const filePath = path.join(outputDir, filename) + + fs.writeFileSync(filePath, htmlContent, 'utf-8') + console.log(`✓ 生成模板: ${filename}`) + successCount++ + }) + + console.log(`\n✓ 成功生成 ${successCount} 个SEO模板文件`) + console.log(`📁 模板目录: ${outputDir}`) +} + +// 执行生成 +main() diff --git a/server/nginx-baota.conf b/server/nginx-baota.conf new file mode 100644 index 0000000..edb2563 --- /dev/null +++ b/server/nginx-baota.conf @@ -0,0 +1,141 @@ +server +{ + listen 80; + listen 443 ssl; + listen 443 quic; + listen [::]:443 ssl; + listen [::]:443 quic; + http2 on; + listen [::]:80; + server_name zhinengcha.cn www.zhinengcha.cn p.zhenaicha.cn; + index index.html index.htm default.htm default.html; + root /www/wwwroot/zhinengcha.cn/dist; + #CERT-APPLY-CHECK--START + # 用于SSL证书申请时的文件验证相关配置 -- 请勿删除并保持这段设置在优先级高的位置 + include /www/server/panel/vhost/nginx/well-known/zhinengcha.cn.conf; + #CERT-APPLY-CHECK--END + + #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则 + #error_page 404/404.html; + ssl_certificate /www/server/panel/vhost/cert/zhinengcha.cn/fullchain.pem; + ssl_certificate_key /www/server/panel/vhost/cert/zhinengcha.cn/privkey.pem; + ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; + ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; + ssl_prefer_server_ciphers on; + ssl_session_tickets on; + ssl_session_cache shared:SSL:10m; + ssl_session_timeout 10m; + add_header Strict-Transport-Security "max-age=31536000"; + add_header Alt-Svc 'quic=":443"; h3=":443"; h3-29=":443"; h3-27=":443";h3-25=":443"; h3-T050=":443"; h3-Q050=":443";h3-Q049=":443";h3-Q048=":443"; h3-Q046=":443"; h3-Q043=":443"'; + error_page 497 https://$host$request_uri; + + #SSL-END + + #ERROR-PAGE-START 错误页配置,可以注释、删除或修改 + #error_page 404 /404.html; + #error_page 502 /502.html; + #ERROR-PAGE-END + + #REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效 + include /www/server/panel/vhost/rewrite/html_zhinengcha.cn.conf; + #REWRITE-END + + #禁止访问的文件或目录 + location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md) + { + return 404; + } + + #一键申请SSL证书验证目录相关设置 + location ~ \.well-known{ + allow all; + } + + # API 代理 + location /api/v1 { + proxy_pass http://127.0.0.1:21004; + proxy_set_header Host 127.0.0.1:$server_port; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header REMOTE-HOST $remote_addr; + add_header X-Cache $upstream_cache_status; + proxy_set_header X-Host $host:$server_port; + proxy_set_header X-Scheme $scheme; + proxy_connect_timeout 30s; + proxy_read_timeout 86400s; + proxy_send_timeout 30s; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } + + # 前端路由处理 - 爬虫检测返回静态SEO页面 + location / { + set $seo_page 0; + # 检测常见爬虫 User-Agent + if ($http_user_agent ~* "(baiduspider|googlebot|bingbot|msnbot|360spider|sogou|youdaobot|twitterbot|facebookexternalhit|linkedinbot|bytespider)") { + set $seo_page 1; + } + # 如果是爬虫且是首页 + if ($seo_page = 1) { + rewrite ^/$ /seo-templates/index.html last; + } + # 如果是爬虫且是其他页面 + if ($seo_page = 1) { + rewrite ^/agent$ /seo-templates/agent.html last; + } + if ($seo_page = 1) { + rewrite ^/help$ /seo-templates/help.html last; + } + if ($seo_page = 1) { + rewrite ^/help/guide$ /seo-templates/help-guide.html last; + } + if ($seo_page = 1) { + rewrite ^/example$ /seo-templates/example.html last; + } + if ($seo_page = 1) { + rewrite ^/service$ /seo-templates/service.html last; + } + if ($seo_page = 1) { + rewrite ^/inquire/riskassessment$ /seo-templates/inquire-riskassessment.html last; + } + if ($seo_page = 1) { + rewrite ^/inquire/companyinfo$ /seo-templates/inquire-companyinfo.html last; + } + if ($seo_page = 1) { + rewrite ^/inquire/marriage$ /seo-templates/inquire-marriage.html last; + } + if ($seo_page = 1) { + rewrite ^/promote$ /seo-templates/promote.html last; + } + # 普通用户返回 SPA + try_files $uri $uri/ /index.html; + } + + # SEO 静态模板目录 + location /seo-templates { + root /www/wwwroot/zhinengcha.cn/dist; + internal; + } + + #禁止在证书验证目录放入敏感文件 + if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) { + return 403; + } + + location ~ .*\\.(gif|jpg|jpeg|png|bmp|swf)$ + { + expires 30d; + error_log /dev/null; + access_log /dev/null; + } + + location ~ .*\\.(js|css)?$ + { + expires 12h; + error_log /dev/null; + access_log /dev/null; + } + access_log /www/wwwlogs/zhinengcha.cn.log; + error_log /www/wwwlogs/zhinengcha.cn.error.log; +} diff --git a/server/package.json b/server/package.json new file mode 100644 index 0000000..ed67cf3 --- /dev/null +++ b/server/package.json @@ -0,0 +1,16 @@ +{ + "name": "znc-seo-tools", + "version": "1.0.0", + "description": "智能查 SEO 工具 - 生成爬虫友好的静态 HTML 模板", + "main": "generate-seo-templates.cjs", + "scripts": { + "generate": "node generate-seo-templates.cjs" + }, + "keywords": [ + "seo", + "crawler", + "spa" + ], + "author": "zhinengcha", + "license": "MIT" +} diff --git a/src/components/BindPhoneDialog.vue b/src/components/BindPhoneDialog.vue index 330fe98..46e248f 100644 --- a/src/components/BindPhoneDialog.vue +++ b/src/components/BindPhoneDialog.vue @@ -1,7 +1,9 @@