fix: deploy-test 验证码检查去掉单引号(SSH 单引号脚本内引号配对断裂)
This commit is contained in:
1 parent
3f065b12b4
commit
f695eeafb3
1 file changed
+1
-1
@@ -170,7 +170,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/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