|
@ -152,12 +152,9 @@ class Users extends RedisModel {
|
|
|
}
|
|
|
|
|
|
sessions.forEach(function (session) {
|
|
|
console.error("out:"+session.id);
|
|
|
redisConn.zscore(REDIS_KEYS.Sessions, session.id, function (err, res) {
|
|
|
console.error("int:"+session.id+" res:"+res);
|
|
|
if (res != null) return; // 已经缓存过的会话不再缓存
|
|
|
(function (sessionId, userId) {
|
|
|
console.error("int_two:"+sessionId);
|
|
|
let business_type = session.business_type;
|
|
|
if (!session.business_type && session.type == SESSION_TYPE.MUC) {
|
|
|
business_type = 2
|