From cadac0a99d87c53805a07f3b4ca7fd11e524fe4a Mon Sep 17 00:00:00 2001
From: hyb <kk_huangyangbo@163.com>
Date: Fri, 07 Nov 2025 01:22:21 +0000
Subject: [PATCH] 新增齐鲁pad笼位更新操作压测脚本
---
测试组/脚本/登录获取token/获取用户token.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git "a/\346\265\213\350\257\225\347\273\204/\350\204\232\346\234\254/\347\231\273\345\275\225\350\216\267\345\217\226token/\350\216\267\345\217\226\347\224\250\346\210\267token.py" "b/\346\265\213\350\257\225\347\273\204/\350\204\232\346\234\254/\347\231\273\345\275\225\350\216\267\345\217\226token/\350\216\267\345\217\226\347\224\250\346\210\267token.py"
index 2a32066..66cbbba 100644
--- "a/\346\265\213\350\257\225\347\273\204/\350\204\232\346\234\254/\347\231\273\345\275\225\350\216\267\345\217\226token/\350\216\267\345\217\226\347\224\250\346\210\267token.py"
+++ "b/\346\265\213\350\257\225\347\273\204/\350\204\232\346\234\254/\347\231\273\345\275\225\350\216\267\345\217\226token/\350\216\267\345\217\226\347\224\250\346\210\267token.py"
@@ -8,7 +8,7 @@
}
def get_Token():
- url = "http://192.168.7.127:8083/sys/login"
+ url = "http://192.168.7.104:8081/sys/login"
headers = {
"content-type":"application/json; charset=UTF-8"
}
@@ -22,12 +22,13 @@
username = aes_encrypt(user["username"], "abcdefgh12345678", "12345678abcdefgh")
password = aes_encrypt(user["password"], "abcdefgh12345678", "12345678abcdefgh")
# 构造请求体
- params = {"code": "1234","username": username, "password": password }
+ params = {"code": "","username": username, "password": password,}
try:
response = requests.post(url=url, headers=headers, json=params, verify=False)
if response.status_code == 200:
data = response.json()
- token = data["token"]
+ token = data["refreshToken"]
+ print(user["username"])
if token:
# Token写入Excel文件
conftest.write_excel("TestData/userinfo.xlsx",index,"token",token)
--
Gitblit v1.9.1