|  | @@ -91,7 +91,12 @@ class Party extends Common
 | 
	
		
			
				|  |  |          $where["user_id"] = $user_id;
 | 
	
		
			
				|  |  |          $where["room_type"] = $room_type;
 | 
	
		
			
				|  |  |          $sqlPartyInfo = $partyModel->where($where)->find();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +        if($sqlPartyInfo["status"] == 0){
 | 
	
		
			
				|  |  | +            // 清楚对应的记录
 | 
	
		
			
				|  |  | +            $redis->del($this->roomTypeArr[$room_type]."_".$sqlPartyInfo["id"]);
 | 
	
		
			
				|  |  | +            // 删除派对记录
 | 
	
		
			
				|  |  | +            \app\common\model\Party::where('id',$sqlPartyInfo["id"])->delete();
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          if(!$sqlPartyInfo) { // sql中不存在派对信息
 | 
	
		
			
				|  |  |              $partylimit = config("site.roomLimit");
 | 
	
		
			
				|  |  |              $partycount = $partyModel->where(['is_close'=>0])->count("id");
 | 
	
	
		
			
				|  | @@ -195,7 +200,7 @@ class Party extends Common
 | 
	
		
			
				|  |  |                  // 删除派对记录
 | 
	
		
			
				|  |  |                  \app\common\model\Party::where('id',$sqlPartyInfo["id"])->delete();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                //$this->error("创建失败,请重试");//不清楚具体要做什么先注释
 | 
	
		
			
				|  |  | +                $this->error("创建失败,请重试");//不清楚具体要做什么先注释
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  //            if($sqlPartyInfo["status"] != 1) $this->error("该房间为预创建房间,请联系管理员正式开通!");
 | 
	
		
			
				|  |  |              // 如果是房主并且房间处于离线状态下激活
 |