|
|
@ -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); |
|
|
|
} |
|
|
|
}); |
|
|
|