Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
ananzhusen committed Oct 25, 2024
1 parent 3107717 commit 03f478d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ export class Meta2d {
"async":false
}
},
"id": item.productId+'/'+item.deviceId+s8()
"id": item.productId+'/'+item.deviceId+'-'+s8()
}));
})
}
Expand Down Expand Up @@ -2331,7 +2331,7 @@ export class Meta2d {
//消息接收
this.jetLinksClient.onmessage = (e) => {
const mess = JSON.parse(e.data);
if(mess.payload.success&&mess.payload?.properties){
if(mess.payload&&mess.payload.success&&mess.payload?.properties){
const data = [];
for(let key in mess.payload.properties){
if(!key.startsWith('_')){
Expand All @@ -2354,7 +2354,7 @@ export class Meta2d {
"properties":item.properties,
"history":1
},
"id": item.topic+s8()
"id": item.topic+'-'+s8()
}));
})
}
Expand Down

0 comments on commit 03f478d

Please sign in to comment.