|
@@ -280,6 +280,10 @@ export default class User {
|
|
|
// }
|
|
|
|
|
|
|
|
|
+ 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') {
|
|
@@ -288,8 +292,8 @@ export default class User {
|
|
|
console.log(req)
|
|
|
this.socket.emit('PUSH', req)
|
|
|
}
|
|
|
- if (cmd === 'load_history_completed') {
|
|
|
- console.log(req)
|
|
|
+ if (cmd === 'load_history_completed') {
|
|
|
+ console.log(req)
|
|
|
this.socket.emit('PUSH', req)
|
|
|
}
|
|
|
Pusher.push(socket, req)
|