From c27c86d764f1d3249b1d98dcf3198970bb859825 Mon Sep 17 00:00:00 2001 From: milky0217 Date: Tue, 2 Jun 2026 13:04:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81+fix:=20switch-env.sh=E5=AE=B9=E5=99=A8=E5=86=85?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/switch-env.sh | 5 ++--- src/handlers/meta.rs | 11 ++++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/switch-env.sh b/scripts/switch-env.sh index 20c5430..e7b11d3 100755 --- a/scripts/switch-env.sh +++ b/scripts/switch-env.sh @@ -13,9 +13,8 @@ ENV_FILE="$PROJECT_ROOT/.env" # ---------- 配置 ---------- # 1Panel 管理的 OpenResty 容器的实际配置文件路径 -BASE_DIR="/opt/1panel/apps/openresty/openresty" -PROXY_DIR="${BASE_DIR}/www/sites/xmclassmate.top/proxy" -ROOT_CONF="${PROXY_DIR}/root.conf" +# 容器内路径(host: /opt/1panel/apps/openresty/openresty/www/sites/...) +ROOT_CONF="/www/sites/xmclassmate.top/proxy/root.conf" NGINX_CONTAINER="1Panel-openresty-ABu5" SSH_HOST="root@1panel-server" diff --git a/src/handlers/meta.rs b/src/handlers/meta.rs index 05fd6ee..1d0f1c8 100644 --- a/src/handlers/meta.rs +++ b/src/handlers/meta.rs @@ -192,9 +192,14 @@ const HTML_TEMPLATE: &str = r#"

访问方式

-

- 请在微信中搜索「大气稳定度判定」小程序,或扫描下方二维码打开。 -

+
+

+ 请在微信中搜索「大气稳定度判定」小程序,或扫描下方二维码打开。 +

+ 微信小程序二维码 +

本页面为后端服务状态页,小程序功能请通过微信客户端访问。