|
@@ -167,6 +167,9 @@ common={
|
|
_this.bdSocket(function(res){
|
|
_this.bdSocket(function(res){
|
|
_this.data.isReady=1;
|
|
_this.data.isReady=1;
|
|
console.log(res.msg);
|
|
console.log(res.msg);
|
|
|
|
+ if(_this.GET("test")){
|
|
|
|
+ _this.tips(" bdSocket yes");
|
|
|
|
+ }
|
|
});
|
|
});
|
|
break;
|
|
break;
|
|
case 'player_join':
|
|
case 'player_join':
|
|
@@ -376,6 +379,12 @@ common={
|
|
this.data.uid=this.GET("user_id");
|
|
this.data.uid=this.GET("user_id");
|
|
this.data.mt=this.GET("mt");
|
|
this.data.mt=this.GET("mt");
|
|
}
|
|
}
|
|
|
|
+ if(this.GET("test")){
|
|
|
|
+ setTimeout(function(){
|
|
|
|
+ _this.startGame();
|
|
|
|
+ },5000)
|
|
|
|
+
|
|
|
|
+ }
|
|
this.getUserInfo(function(res){
|
|
this.getUserInfo(function(res){
|
|
_this.userInfo=res.info;
|
|
_this.userInfo=res.info;
|
|
$("#py1_username").html(res.info.name);
|
|
$("#py1_username").html(res.info.name);
|