|
@ -211,7 +211,8 @@ class Participants extends RedisModel {
|
|
*/
|
|
*/
|
|
addUser(sessionId, user,role,handler) {
|
|
addUser(sessionId, user,role,handler) {
|
|
let self = this;
|
|
let self = this;
|
|
let users = [user+":"+role||0];
|
|
|
|
|
|
if(!role)role = 0;
|
|
|
|
let users = [user+":"+role];
|
|
Participants.saveParticipantsToRedis(sessionId, users, new Date(), function (res) {
|
|
Participants.saveParticipantsToRedis(sessionId, users, new Date(), function (res) {
|
|
if (res) {
|
|
if (res) {
|
|
Participants.saveParticipantsToMysql(sessionId, users,function(err,res){
|
|
Participants.saveParticipantsToMysql(sessionId, users,function(err,res){
|