pk接受后 不接受其他PK

This commit is contained in:
2025-10-29 23:33:09 +08:00
parent 4fc82cbc3d
commit 0bf4fff05e

View File

@@ -526,6 +526,11 @@ class RoomPk extends Model
model('Chat')->sendMsg(1033,$pk_info['room_id_a'],$text);
model('Chat')->sendMsg(1033,$pk_info['room_id_b'],$text);
}
if($pk_info['status'] == 6){
//把房间记录为不接受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()]);
}
return ['code' => 1, 'msg' => '成功', 'data' => ''];
} else {
return ['code' => 0, 'msg' => '失败', 'data' => ''];