|
@@ -270,7 +270,10 @@ class IotCoreView(View):
|
|
|
params = {'rtsp_command': MSG}
|
|
|
r = requests.post(url=url, headers=headers, json=params, timeout=2)
|
|
|
if r.status_code == 200:
|
|
|
- return response.json(0)
|
|
|
+ res = r.json()
|
|
|
+ if res['message'] == 'OK':
|
|
|
+ return response.json(0)
|
|
|
+ return response.json(10044)
|
|
|
else:
|
|
|
# print('发布失败')
|
|
|
return response.json(10044)
|