From 81f1a0c2516fbde40e8c8648b7c4a2f07c1faa89 Mon Sep 17 00:00:00 2001 From: floraachy <1622042529@qq.com> Date: Mon, 15 Apr 2024 17:11:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BB=E6=89=BE=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=8F=AA=E8=83=BD=E6=89=BE?= =?UTF-8?q?yaml=E7=BB=93=E5=B0=BE=E6=96=87=E4=BB=B6=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=89=BEyml=E7=BB=93=E5=B0=BE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/requests_utils/api_workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/requests_utils/api_workflow.py b/utils/requests_utils/api_workflow.py index 79fbc96..588b417 100644 --- a/utils/requests_utils/api_workflow.py +++ b/utils/requests_utils/api_workflow.py @@ -28,7 +28,7 @@ def get_api_data(api_file_path: str, key: str = None): api_data = [] if os.path.isdir(api_file_path): logger.debug(f"目标路径是一个目录:{api_file_path}") - api_files = get_files(target=api_file_path, end=".yaml") + api_files = get_files(target=api_file_path, end=".yaml") + get_files(target=api_file_path, end=".yml") for api_file in api_files: api_data.append(YamlHandle(filename=api_file).read_yaml)