Browse Source

sync

master
zeus 4 years ago
parent
commit
0c1cecd61b
  1. 3
      swarmlab-app/src/run/app.js

3
swarmlab-app/src/run/app.js

@ -466,12 +466,15 @@ function onCollection(err, collection) {
reslog.log = data
var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"")
console.log(' ---get '+ JSON.stringify(reslog))
pubClient.get(issend, function(err, object) {
if(object){
console.log(' ---set '+ JSON.stringify(reslog))
pubClient.set(issend, itemsProcessed, function(err, res) {
io.in(user1).emit("logdata", reslog);
});
}else{
console.log(' ---isset '+ JSON.stringify(reslog))
io.in(user1).emit("logdata", reslog);
}
});

Loading…
Cancel
Save