|
|
@ -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}) |
|
|
|