调试代码

main
RogerWork 8 months ago
parent cb4af1059b
commit 1e9a25332a
  1. 2
      mock/views.py

@ -79,7 +79,7 @@ def upload_screen_seat_info(request):
# 1、影片信息下载接口 GET /data/downloadFilmInfo # 1、影片信息下载接口 GET /data/downloadFilmInfo
def download_film_info(request): def download_film_info(request):
ip = request.META.get('REMOTE_ADDR') ip = request.META.get('REMOTE_ADDR')
print(ip) print('REMOTE_ADDR', ip)
mock_service_switch = ZZMockModel.objects.filter(ip=ip).first() mock_service_switch = ZZMockModel.objects.filter(ip=ip).first()
print(mock_service_switch) print(mock_service_switch)
if mock_service_switch.downloadFilmInfo is True: if mock_service_switch.downloadFilmInfo is True:

Loading…
Cancel
Save