From de11c1894f07fc56c2cae5ebde9c93c8afe6013c Mon Sep 17 00:00:00 2001 From: liguangyu06 <1666071293@qq.com> Date: Thu, 7 Mar 2024 09:52:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...23\201\351\242\204\346\265\213\346\230\216\347\273\206.py" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/air_case/cmdc_order_list/\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\345\225\206\345\223\201\351\242\204\346\265\213\346\230\216\347\273\206.air/\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\345\225\206\345\223\201\351\242\204\346\265\213\346\230\216\347\273\206.py" "b/air_case/cmdc_order_list/\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\345\225\206\345\223\201\351\242\204\346\265\213\346\230\216\347\273\206.air/\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\345\225\206\345\223\201\351\242\204\346\265\213\346\230\216\347\273\206.py" index 21f0ebb2..509e6d89 100644 --- "a/air_case/cmdc_order_list/\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\345\225\206\345\223\201\351\242\204\346\265\213\346\230\216\347\273\206.air/\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\345\225\206\345\223\201\351\242\204\346\265\213\346\230\216\347\273\206.py" +++ "b/air_case/cmdc_order_list/\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\345\225\206\345\223\201\351\242\204\346\265\213\346\230\216\347\273\206.air/\345\257\274\345\207\272\345\212\237\350\203\275\351\252\214\350\257\201_\345\225\206\345\223\201\351\242\204\346\265\213\346\230\216\347\273\206.py" @@ -32,9 +32,9 @@ result = requests.post(url, json=request_body, headers=headers) result = json.loads(result.content) # 生成随机数 -pr_random = random.randint(0, len(result["data"]) - 1) +pr_random = random.randint(0, len(result["data"]["list"]) - 1) # 获取商品信息 -customerInfo = result["data"][pr_random]["customerCode"] +customerInfo = result["data"]["list"][pr_random]["customerCode"] # 第三步商品预测明细导出操作 url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url85") -- GitLab