From 6f1e19cda80e5030f9316884cc87f93b801222f5 Mon Sep 17 00:00:00 2001 From: roger_mac Date: Thu, 28 Dec 2023 20:18:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B6=85=E6=97=B6=E5=94=AE?= =?UTF-8?q?=E7=A5=A8=E9=80=80=E7=A5=A8=E7=9A=84bypass=20=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/utils/mock_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mock/utils/mock_service.py b/mock/utils/mock_service.py index 8e2b155..ffc77cd 100644 --- a/mock/utils/mock_service.py +++ b/mock/utils/mock_service.py @@ -32,7 +32,7 @@ def mock(_ip, _api, **kwargs): if mock_data is not None: return JsonResponse(mock_data, json_dumps_params={'ensure_ascii': False}) else: - bypass(kwargs.get('request')) + return bypass(kwargs.get('request')) if _api == 'validError': mock_data = valid_error_tmp.get() return JsonResponse(mock_data, json_dumps_params={'ensure_ascii': False})