locky 3 жил өмнө
parent
commit
3907f77bb2

+ 2 - 2
Controller/SensorGateway/SmartSceneController.py

@@ -105,7 +105,7 @@ class SmartSceneView(View):
         @param request_dict: 请求参数
         @param user_id: 用户id
         @request_dict deviceId: 网关设备id
-        @request_dict gatewaySubId: 子设备id
+        @request_dict subDeviceId: 子设备id
         @request_dict sceneName: 场景名称
         @request_dict conditions: 条件
         @request_dict tasks: 任务
@@ -117,7 +117,7 @@ class SmartSceneView(View):
         @return: response
         """
         device_id = request_dict.get('deviceId', None)
-        sub_device_id = request_dict.get('gatewaySubId', None)
+        sub_device_id = request_dict.get('subDeviceId', None)
         scene_name = request_dict.get('sceneName', None)
         conditions = request_dict.get('conditions', None)
         tasks = request_dict.get('tasks', None)