Commit 999ecc93 authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 855f2aeb
......@@ -54,11 +54,11 @@ for i in result["data"]:
# 商品可能存在于多个套包,循环找到对应的套包验证
if i["groupCode1"] == group_code:
# 获取商品对应的groupCode
result = {"groupCode": i["subList"]["groupCode"]}
result = {"groupCode": i["subList"][0]["groupId"]}
result["api_time"] = api_time
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict25", group_code)
check_dict = commonFuc().get_business_data(module, "checkDict25", i["groupId"])
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
break
\ No newline at end of file
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