Browse Source

修改请求参数

locky 3 năm trước cách đây
mục cha
commit
e58084ab75
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      controller/index.py

+ 1 - 1
controller/index.py

@@ -286,7 +286,7 @@ class oa2RtspStartView(TemplateView):
 
         # 请求MQTT发布消息
         url = '{}/iot/requestPublishMessage'.format(SERVER_PREFIX_TEST)    # 测试服务器
-        requests_data = {'UID': UID, 'MSG': MSG+' 1'+channel}   # 1: 开始推流,0: 停止推流; channel: 推流通道
+        requests_data = {'UID': UID, 'rtsp': MSG, 'enable': '1'}   # 1: 开始推流,0: 停止推流; channel: 推流通道
         r = requests.post(url, requests_data)
         if r.status_code != 200:
             return JsonResponse({'错误': '请求响应异常'})