瀏覽代碼

sensorId->sensor_id

locky 3 年之前
父節點
當前提交
a1e6d7b698
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      SensorGateway/SensorGatewayController.py

+ 2 - 2
SensorGateway/SensorGatewayController.py

@@ -54,8 +54,8 @@ class SensorGateway(View):
             if not CommonService.check_time_stamp_token(time_stamp_token, time_stamp):
                 return response.json(13)
 
-            sensorId = ''.join(random.sample(string.ascii_letters + string.digits, 6))
-            return response.json(0, {'sensorId': sensorId})
+            sensor_id = ''.join(random.sample(string.ascii_letters + string.digits, 6))
+            return response.json(0, {'sensor_id': sensor_id})
         except Exception as e:
             return response.json(500, repr(e))