Browse Source

enable改为int

locky 3 years ago
parent
commit
7ed07cd198
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/IotCoreController.py

+ 1 - 1
Controller/IotCoreController.py

@@ -284,7 +284,7 @@ class IotCoreView(View):
             params = OrderedDict(
                 [
                     ('alexaRtspCommand', rtsp),
-                    ('enable', enable),
+                    ('enable', int(enable)),
                 ]
             )
             r = requests.post(url=url, headers=headers, json=params, timeout=2)