Преглед на файлове

增加 server_const, 增加forward_request
修改接口 get_off_videos.py
response.py

luojunhui преди 11 месеца
родител
ревизия
f5688dfc86
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      applications/functions/forward_request.py

+ 1 - 1
applications/functions/forward_request.py

@@ -11,7 +11,7 @@ async def forward_requests(params, api):
     转发请求
     :return:
     """
-    new_url = "http://{}:{}/{}".format(server_const.OLD_SERVER_PUBLIC_IP, server_const.PORT, api)
+    new_url = "http://{}:{}/{}".format(server_const.OLD_SERVER_INNER_IP, server_const.PORT, api)
     response = requests.post(
         url=new_url,
         headers={