Commit c3799494 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 7f53238e
...@@ -35,7 +35,8 @@ createTime = result["data"]["createTime"] ...@@ -35,7 +35,8 @@ createTime = result["data"]["createTime"]
# 第三步草稿导出操作 # 第三步草稿导出操作
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url41") url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url41")
request_body = commonFuc().get_business_data(module, "payload41", draftDemandCode, createTime) request_body = [commonFuc().get_business_data(module, "payload41", draftDemandCode, createTime)]
print(request_body)
""" """
场景: 草稿导出验证_快速下单 场景: 草稿导出验证_快速下单
...@@ -48,7 +49,7 @@ result = requests.post(url, json=request_body, headers=headers) ...@@ -48,7 +49,7 @@ result = requests.post(url, json=request_body, headers=headers)
# 获取接口响应时间 # 获取接口响应时间
api_time = float(result.elapsed.total_seconds()) api_time = float(result.elapsed.total_seconds())
# 获取文件 # # 获取文件
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
file_path = BASE_DIR + "/data/cmdc_files/同步导出草稿.xlsx" file_path = BASE_DIR + "/data/cmdc_files/同步导出草稿.xlsx"
......
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