|  | @@ -124,6 +124,14 @@ class Party extends Backend
 | 
	
		
			
				|  |  |                  $result = false;
 | 
	
		
			
				|  |  |                  Db::startTrans();
 | 
	
		
			
				|  |  |                  try {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                    //判断房间id去重
 | 
	
		
			
				|  |  | +                    $check = Db::name('party')->where('party_id',$params['party_id'])->where('id','neq',$ids)->find();
 | 
	
		
			
				|  |  | +                    if($check){
 | 
	
		
			
				|  |  | +                        Db::rollback();
 | 
	
		
			
				|  |  | +                        $this->error('重复的派对id');
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                      $roomTypeArr = [1=>"party",2=>"live"];
 | 
	
		
			
				|  |  |                      $room_type = $row->room_type;
 | 
	
		
			
				|  |  |                      $party_id = $row->id;
 |