|
@@ -79,7 +79,9 @@ common={
|
|
|
var type=e.type;
|
|
|
switch(type){
|
|
|
case 'init':
|
|
|
-
|
|
|
+ _this.bdSocket(function(res){
|
|
|
+ console.log(res.msg);
|
|
|
+ });
|
|
|
break;
|
|
|
case 'player_join':
|
|
|
_this.player_join(e);
|
|
@@ -197,9 +199,7 @@ common={
|
|
|
}
|
|
|
this.getUserInfo(function(res){
|
|
|
_this.userInfo=res.info;
|
|
|
- _this.bdSocket(function(res){
|
|
|
- console.log(res.msg);
|
|
|
- });
|
|
|
+ _this.initSocket();
|
|
|
|
|
|
})
|
|
|
|