|
@@ -58,7 +58,7 @@ proto._createUser = function (player, table) {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 创建桌子 cell底分 round局数
|
|
// 创建桌子 cell底分 round局数
|
|
|
-proto._createTable = function (cPlayerId,cUserId,cName,cHead,cell, round, type,gameKindTL,playerAllCount,upId,other,agentId,yxndlbTime,yxndlbTip,nowcell) {
|
|
|
|
|
|
|
+proto._createTable = function (cPlayerId,cUserId,cName,cHead,cell, round, type,gameKindTL,playerAllCount,upId,other,agentId,yxndlbTime,yxndlbTip,roomType) {
|
|
|
// this.lastId += _.random(1, 100);////在区间[1,100]内随机取整数 TL++zs yl
|
|
// this.lastId += _.random(1, 100);////在区间[1,100]内随机取整数 TL++zs yl
|
|
|
this.lastId += 1;
|
|
this.lastId += 1;
|
|
|
if(this.lastId>=80000)
|
|
if(this.lastId>=80000)
|
|
@@ -70,7 +70,7 @@ proto._createTable = function (cPlayerId,cUserId,cName,cHead,cell, round, type,g
|
|
|
//console.warn("创建桌子",prefix,serverId);
|
|
//console.warn("创建桌子",prefix,serverId);
|
|
|
// var str3 = "shuiguo 创建桌子Id:"+prefix
|
|
// var str3 = "shuiguo 创建桌子Id:"+prefix
|
|
|
// logger.info(str3);////cssj
|
|
// logger.info(str3);////cssj
|
|
|
- var table = new Table(cPlayerId,cUserId,cName,cHead,this, prefix , cell, round, type,gameKindTL,playerAllCount,upId,other,agentId,yxndlbTime,yxndlbTip,nowcell);
|
|
|
|
|
|
|
+ var table = new Table(cPlayerId,cUserId,cName,cHead,this, prefix , cell, round, type,gameKindTL,playerAllCount,upId,other,agentId,yxndlbTime,yxndlbTip,roomType);
|
|
|
this.tables.push(table);
|
|
this.tables.push(table);
|
|
|
return table;
|
|
return table;
|
|
|
};
|
|
};
|
|
@@ -641,7 +641,7 @@ proto.createTableAsync = P.coroutine(function* (playerId, round, type,gameKind,p
|
|
|
if(whdata && whdata.yxndlbTip) yxndlbTip = whdata.yxndlbTip;
|
|
if(whdata && whdata.yxndlbTip) yxndlbTip = whdata.yxndlbTip;
|
|
|
let nowcell = 0.1
|
|
let nowcell = 0.1
|
|
|
if (roomType == 2) nowcell = 1
|
|
if (roomType == 2) nowcell = 1
|
|
|
- var table = this._createTable(playerId,cUserId,cName,cHead,cell, round, type,gameKind,playerAllCount,upId,other,agentId,yxndlbTime,yxndlbTip,nowcell);
|
|
|
|
|
|
|
+ var table = this._createTable(playerId,cUserId,cName,cHead,cell, round, type,gameKind,playerAllCount,upId,other,agentId,yxndlbTime,yxndlbTip,roomType);
|
|
|
|
|
|
|
|
var gametable = new this.app.models.GameTable({
|
|
var gametable = new this.app.models.GameTable({
|
|
|
_id: table.recordid,//记录
|
|
_id: table.recordid,//记录
|