diff --git a/mock/views.py b/mock/views.py index e2251f4..7240a15 100644 --- a/mock/views.py +++ b/mock/views.py @@ -297,11 +297,11 @@ def enable_mock(request): # 停用mock服务 def disable_mock(request): ip = request.GET.get('ip') - server_ip = get_local_ip() + server_ip = '172.16.1.222' current_host = db(ip, GET_ZZ_PLATFORM_HOST_SQL)['data'][0]['cinema_common_info_val'] if current_host == 'https://zzcs.yinghezhong.com' or current_host == 'https://dy.yinghezhong.com': return JsonResponse({'status': 'success'}) - if current_host == f'http://{server_ip}:8000': + if current_host == f'http://{server_ip}': db_result = db(ip, UPDATE_ZZ_PLATFORM_HOST_SQL, ('https://zzcs.yinghezhong.com',)) if db_result['result'] > 0: return JsonResponse({'status': 'success'})