pk对方房间内用户上下麦推送
This commit is contained in:
@@ -89,7 +89,7 @@ class RoomPit extends Model
|
||||
if($is_pk > 0){
|
||||
//如果此房间是pk中,则推送给pk中房间的成员
|
||||
$text['is_pk'] = 1;
|
||||
model('Chat')->sendMsg(1003,$room_id,$text);
|
||||
model('Chat')->sendMsg(1003,$is_pk,$text);
|
||||
}
|
||||
|
||||
// if($pit_number == 9){
|
||||
@@ -191,7 +191,7 @@ class RoomPit extends Model
|
||||
if($is_pk > 0){
|
||||
//如果此房间是pk中,则推送给pk中房间的成员
|
||||
$text['is_pk'] = 1;
|
||||
model('Chat')->sendMsg(1004,$room_id,$text);
|
||||
model('Chat')->sendMsg(1004,$is_pk,$text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -300,7 +300,7 @@ class RoomPit extends Model
|
||||
if($is_pk > 0){
|
||||
//如果此房间是pk中,则推送给pk中房间的成员
|
||||
$text['is_pk'] = 1;
|
||||
model('Chat')->sendMsg(1039,$room_id,$text);
|
||||
model('Chat')->sendMsg(1039,$is_pk,$text);
|
||||
}
|
||||
return ['code' => 1, 'msg' => '上麦成功', 'data' => null];
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user