mzx16822 6 年之前
父节点
当前提交
fa1b5c7cd0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      public/h5/datigame/js/common.js

+ 2 - 1
public/h5/datigame/js/common.js

@@ -81,6 +81,7 @@ common={
  			case 'init':
  			 _this.data.client_id=data.client_id;
  			_this.bdSocket(function(res){
+ 				_this.data.isReady=1;
  				console.log(res.msg);
  			});
  			    break;
@@ -103,7 +104,7 @@ common={
  		}
  	 	//_this.data.question_id
  	},startGame:function(){
- 		if(this.userInfo.user_id)
+ 		if(this.data.isReady=="1")
  		this.Join();
  		else this.tips("登录失败");
  	},initSocket:function(){