mzx16822 6 gadi atpakaļ
vecāks
revīzija
2bae3469b1
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9 0
      public/h5/datigame/js/common.js

+ 9 - 0
public/h5/datigame/js/common.js

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