This commit is contained in:
1 parent
901291fe85
commit
d26bee577c
1 file changed
+4
-4
@@ -107,7 +107,7 @@ jobs:
|
||||
environment:
|
||||
CAPTCHA_UPSTREAM: "tianai-captcha:18200"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "8081:80"
|
||||
depends_on:
|
||||
- server
|
||||
networks: [perler-net, mw]
|
||||
@@ -141,7 +141,7 @@ jobs:
|
||||
echo "===== 等待前端健康 (/healthz) ====="
|
||||
OK=0
|
||||
for i in $(seq 1 24); do
|
||||
if curl -sf http://127.0.0.1/healthz >/dev/null 2>&1; then OK=1; break; fi
|
||||
if curl -sf http://127.0.0.1:8081/healthz >/dev/null 2>&1; then OK=1; break; fi
|
||||
sleep 5
|
||||
done
|
||||
if [ "$OK" != "1" ]; then
|
||||
@@ -166,7 +166,7 @@ jobs:
|
||||
echo "===== 最终验证 ====="
|
||||
HOK=0
|
||||
for i in $(seq 1 12); do
|
||||
CODE=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1/ || true)
|
||||
CODE=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8081/ || true)
|
||||
[ "$CODE" = "200" ] && HOK=1 && break
|
||||
sleep 5
|
||||
done
|
||||
@@ -178,7 +178,7 @@ jobs:
|
||||
echo "===== 验证码链路检查(本地平台 TestEnv 站点) ====="
|
||||
COK=0
|
||||
for i in $(seq 1 6); do
|
||||
CCODE=$(curl -s -m 8 -o /dev/null -w "%{http_code}" -X POST http://127.0.0.1/tac/api/challenge/generate -H "X-Site-Key: 6a062b70-c0b3-428e-8f1b-cca402e67ddd" -H "Content-Type: application/json" -d "{\"captchaType\":\"ROTATE\"}" || true)
|
||||
CCODE=$(curl -s -m 8 -o /dev/null -w "%{http_code}" -X POST http://127.0.0.1:8081/tac/api/challenge/generate -H "X-Site-Key: 6a062b70-c0b3-428e-8f1b-cca402e67ddd" -H "Content-Type: application/json" -d "{\"captchaType\":\"ROTATE\"}" || true)
|
||||
[ "$CCODE" = "200" ] && COK=1 && break
|
||||
sleep 3
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user