Skip to content

Commit

Permalink
每次加入新房间
Browse files Browse the repository at this point in the history
  • Loading branch information
mailgyc committed Feb 27, 2020
1 parent dd90830 commit 9a7a82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doudizhu/static/js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ PG.Game.prototype = {

onopen: function () {
console.log('socket onopen');
PG.Socket.send([PG.Protocol.REQ_JOIN_ROOM, {"room": PG.playerInfo['room'], "level": observer.get('baseScore')}]);
PG.Socket.send([PG.Protocol.REQ_JOIN_ROOM, {"room": -1, "level": observer.get('baseScore')}]);
},

onerror: function () {
Expand Down

0 comments on commit 9a7a82b

Please sign in to comment.