pk接受后 不接受其他PK

This commit is contained in:
2025-10-29 23:15:53 +08:00
parent c1d217d8b1
commit 4fc82cbc3d

View File

@@ -200,6 +200,9 @@ class RoomPk extends Model
db::commit(); db::commit();
//发送消息给对方 //发送消息给对方
if($type == 1){//1接受,2拒绝 if($type == 1){//1接受,2拒绝
//把房间记录为不接受PK状态
db::name('vs_room')->where('id', $pk_info['room_id_a'])->update(['is_pk' => 2,'updatetime' => time()]);
db::name('vs_room')->where('id', $pk_info['room_id_b'])->update(['is_pk' => 2,'updatetime' => time()]);
$texta = [ $texta = [
'type' => $type, 'type' => $type,
'room_id' => $pk_info['room_id_b'], 'room_id' => $pk_info['room_id_b'],