فهرست منبع

修改发送通知超时时间

chanjunkai 5 سال پیش
والد
کامیت
5792d0e328
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      controller/index.py

+ 1 - 1
controller/index.py

@@ -341,7 +341,7 @@ class oa2RtspStartView(TemplateView):
         logger.info("-----------command_url={command_url}".format(command_url=command_url))
         try:
             logger.info("-----------------开始调用接口")
-            exec_res = requests.get(url=command_url, timeout=6)
+            exec_res = requests.get(url=command_url, timeout=2)
             res = exec_res.json()
             logger.info('------------调用接口执行发送命令---------------')
             logger.info(res)