修复超时售票退票的bypass 逻辑

main
roger_mac 11 months ago
parent c380bf10b4
commit 6f1e19cda8
  1. 2
      mock/utils/mock_service.py

@ -32,7 +32,7 @@ def mock(_ip, _api, **kwargs):
if mock_data is not None: if mock_data is not None:
return JsonResponse(mock_data, json_dumps_params={'ensure_ascii': False}) return JsonResponse(mock_data, json_dumps_params={'ensure_ascii': False})
else: else:
bypass(kwargs.get('request')) return bypass(kwargs.get('request'))
if _api == 'validError': if _api == 'validError':
mock_data = valid_error_tmp.get() mock_data = valid_error_tmp.get()
return JsonResponse(mock_data, json_dumps_params={'ensure_ascii': False}) return JsonResponse(mock_data, json_dumps_params={'ensure_ascii': False})

Loading…
Cancel
Save