Browse Source

light_state格式不对问题

zengminguo 2 years ago
parent
commit
a3c0eb0ccc
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/User.js

+ 0 - 5
src/User.js

@@ -279,11 +279,6 @@ export default class User {
         //   // socket.emit('PUSH', msg)
         // }
         
-
-        if (cmd === 'light_state')
-        {
-          req.dataForLightState = req.data
-        }
         // TODO 后续打开 加上device_state全局广播逻辑
         // req.data = JSON.stringify(datas)
         if (cmd === 'device_state' || cmd === 'light_state' || cmd === 'tof_data') {