Commit d0191f01 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 4f5fddc4
......@@ -33,8 +33,6 @@ print(request_body)
"""
# 发送请求
result = requests.get(url, params=request_body, headers=headers)
# result = requests.get(url, params=request_body)
# result = commonFuc.http_get(url, headers=headers, params=request_body)
result = json.loads(result.content)
print(result)
# 获取预期结果
......
......@@ -22,7 +22,7 @@ password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token()
print(cmdc_access_token)
headers = commonFuc().get_business_data(module, "json_headers2",cmdc_access_token)
headers = commonFuc().get_business_data(module, "json_headers2", cmdc_access_token)
print(headers)
request_body = commonFuc().get_business_data(module, "payload2")
print(request_body)
......@@ -33,8 +33,6 @@ print(request_body)
"""
# 发送请求
result = requests.get(url, params=request_body, headers=headers)
# result = requests.get(url, params=request_body)
# result = commonFuc.http_get(url, headers=headers, params=request_body)
result = json.loads(result.content)
print(result)
# 获取预期结果
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment