This commit is contained in:
wangwei01 2019-07-26 13:05:57 +08:00
parent 0d9a18c865
commit 4d55b4cc9a

View File

@ -51,13 +51,13 @@ class MatchController{
$r = array(); $r = array();
if ($room_uuid == null) { if ($room_uuid == null) {
$r = $this->getRedis($node_id); $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)) { if (empty($current_db_str)) {
$room_uuid = $node_id . '_' . md5($_REQUEST['account_id']) . time(); $room_uuid = $node_id . '_' . md5($_REQUEST['account_id']) . time();
$current_db = array( $current_db = array(
'room_uuid' => $room_uuid, '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 { } else {
$current_db = json_decode($current_db_str, true); $current_db = json_decode($current_db_str, true);
$room_uuid = $current_db['room_uuid']; $room_uuid = $current_db['room_uuid'];