1
This commit is contained in:
parent
0d9a18c865
commit
4d55b4cc9a
@ -51,13 +51,13 @@ class MatchController{
|
||||
$r = array();
|
||||
if ($room_uuid == null) {
|
||||
$r = $this->getRedis($node_id);
|
||||
$current_db_str = $r->get('game2001:match:current_room');
|
||||
$current_db_str = $r->get('game2002:match:current_room');
|
||||
if (empty($current_db_str)) {
|
||||
$room_uuid = $node_id . '_' . md5($_REQUEST['account_id']) . time();
|
||||
$current_db = array(
|
||||
'room_uuid' => $room_uuid,
|
||||
);
|
||||
$r -> set('game2001:match:current_room', json_encode($current_db));
|
||||
$r -> set('game2002:match:current_room', json_encode($current_db));
|
||||
} else {
|
||||
$current_db = json_decode($current_db_str, true);
|
||||
$room_uuid = $current_db['room_uuid'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user