mirror of
https://gitee.com/xmz7891/ykxmz.git
synced 2026-10-18 16:00:43 +00:00
- _build/CHANGELOG.md 补上 1.7.1 条目(发版说明的唯一来源) - 两个验证脚本还在用旧的管理页路径 zhingzhuanzhan, 跑起来会误报失败,改成 zhongzhuanzhan - dist 里清掉 1.6.x 的历史产物(Gitee 发行版里有,删了能下回来)
33 lines
1.4 KiB
Bash
33 lines
1.4 KiB
Bash
#!/bin/bash
|
|
# 官网最终验收
|
|
set -u
|
|
|
|
BASE=http://127.0.0.1:8080
|
|
PUB=https://relay.xxmxxs.top
|
|
|
|
echo " 官网 /"
|
|
curl -s --max-time 15 "$BASE/" -o /tmp/s.html 2>/dev/null
|
|
echo " HTTP $(curl -s -o /dev/null -w '%{http_code}' --max-time 10 "$BASE/") $(wc -c < /tmp/s.html) 字节"
|
|
echo " 管理入口: $(grep -o 'href="[^"]*"[^>]*管理入口' /tmp/s.html | head -1)"
|
|
echo " 残留浅灰 #c9d1d9: $(grep -c 'c9d1d9' /tmp/s.html) 处"
|
|
echo " 主文字色: $(grep -o 'color:#1f2328' /tmp/s.html | head -1)"
|
|
echo " 底色: $(grep -o 'background:#ffffff' /tmp/s.html | head -1)"
|
|
|
|
echo
|
|
echo " 管理页 /zhongzhuanzhan"
|
|
curl -s --max-time 15 "$BASE/zhongzhuanzhan" -o /tmp/l.html 2>/dev/null
|
|
echo " 登录框: $(grep -c 'name=username' /tmp/l.html) 个账号框"
|
|
echo " 底色: $(grep -o 'background:#ffffff' /tmp/l.html | head -1)"
|
|
|
|
echo
|
|
echo " 登录后管理页"
|
|
KEY=$(cat /root/lanremote-relay/data/admin_key.txt 2>/dev/null)
|
|
curl -s --max-time 15 -H "X-Admin: $KEY" "$BASE/zhongzhuanzhan" -o /tmp/a.html 2>/dev/null
|
|
echo " 下载区: $(grep -c 'dlPanel' /tmp/a.html)"
|
|
echo " 深色值残留: $(grep -c '0d1117' /tmp/a.html) 处"
|
|
echo " 白色底色: $(grep -o '\-\-bg:#ffffff' /tmp/a.html | head -1)"
|
|
|
|
echo
|
|
echo " 公网官网"
|
|
echo " HTTP $(curl -s -o /dev/null -w '%{http_code}' --max-time 40 -H 'User-Agent: LanRemote/1.4.0' "$PUB/")"
|