From 83e5c73a8f7b6b49bfb6a0e30ad9fc1d4440bb51 Mon Sep 17 00:00:00 2001 From: claude_dev Date: Fri, 31 Jul 2026 15:18:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20nas-verify=20login=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D=20token(=E9=9D=9E=20access=5Ftoken,=E5=AE=9E?= =?UTF-8?q?=E6=B5=8B=E5=93=8D=E5=BA=94=20{token:...})?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 4720be3..aac76c2 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -78,7 +78,7 @@ jobs: BASE=http://192.168.2.154:8000 token=$(curl -s -X POST $BASE/api/v1/auth/login -H "Content-Type: application/json" \ -d '{"username":"admin","password":"Ccf7561523*"}' \ - | python3 -c "import json,sys;print(json.load(sys.stdin).get('access_token',''))") + | python3 -c "import json,sys;print(json.load(sys.stdin).get('token',''))") [ -n "$token" ] || { echo "❌ login 失败"; exit 1; } echo "✅ login OK" code=$(curl -s -o /tmp/sl.json -w "%{http_code}" $BASE/api/v1/strategy/list -H "Authorization: Bearer $token")