pk接受后 不接受其他PK
This commit is contained in:
@@ -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'],
|
||||||
|
|||||||
Reference in New Issue
Block a user