|  | @@ -652,7 +652,8 @@ class Party extends Common
 | 
											
												
													
														|  |              if($livingUserPartyId != $party_id){
 |  |              if($livingUserPartyId != $party_id){
 | 
											
												
													
														|  |                  // 扣除房间在线人数
 |  |                  // 扣除房间在线人数
 | 
											
												
													
														|  |                  $redis->HDel("online_" . $livingUserPartyId, $user_id);
 |  |                  $redis->HDel("online_" . $livingUserPartyId, $user_id);
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +                //首页用户头像
 | 
											
												
													
														|  | 
 |  | +                $redis->zRem("party_user_".$livingUserPartyId, $user_id);
 | 
											
												
													
														|  |                  // 扣除在线用户在房间情况
 |  |                  // 扣除在线用户在房间情况
 | 
											
												
													
														|  |                  $redis->hDel("livingUser", $user_id);
 |  |                  $redis->hDel("livingUser", $user_id);
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
										
											
												
													
														|  | @@ -2143,6 +2144,30 @@ class Party extends Common
 | 
											
												
													
														|  |          $this->success("获取成功!",\app\common\model\Music::select());
 |  |          $this->success("获取成功!",\app\common\model\Music::select());
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    //派对举报
 | 
											
												
													
														|  | 
 |  | +    public function report_party() {
 | 
											
												
													
														|  | 
 |  | +        $type = $this->request->param('type');// 类型描述
 | 
											
												
													
														|  | 
 |  | +        $content = $this->request->param('content');// 内容
 | 
											
												
													
														|  | 
 |  | +        $images = $this->request->param('images');// 图片
 | 
											
												
													
														|  | 
 |  | +        $party_id = $this->request->param('party_id');//
 | 
											
												
													
														|  | 
 |  | +        if (!$type || !$content || !$images || !$party_id) {
 | 
											
												
													
														|  | 
 |  | +            $this->error("请完成举报内容!");
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        $data = [];
 | 
											
												
													
														|  | 
 |  | +        $data["user_id"] = $this->auth->id;
 | 
											
												
													
														|  | 
 |  | +        $data["party_id"] = $party_id;
 | 
											
												
													
														|  | 
 |  | +        $data["type"] = $type;
 | 
											
												
													
														|  | 
 |  | +        $data["content"] = $content;
 | 
											
												
													
														|  | 
 |  | +        $data["images"] = $images;
 | 
											
												
													
														|  | 
 |  | +        $data["createtime"] = time();
 | 
											
												
													
														|  | 
 |  | +        $res = Db::name('party_report')->insertGetId($data);
 | 
											
												
													
														|  | 
 |  | +        if ($res) {
 | 
											
												
													
														|  | 
 |  | +            $this->success("举报内容提交成功!");
 | 
											
												
													
														|  | 
 |  | +        } else {
 | 
											
												
													
														|  | 
 |  | +            $this->error("网络错误,请稍后重试!");
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      //============================定时任务==========================//
 |  |      //============================定时任务==========================//
 | 
											
												
													
														|  |  
 |  |  
 |