|
@@ -329,7 +329,7 @@ function root:destroy_room(roomId)
|
329
|
329
|
local isExist = lib_battle_redis:exists(key)
|
330
|
330
|
if not isExist then
|
331
|
331
|
-- 从活跃房间集合删除
|
332
|
|
- lib_battle_redis:sismerber(_get_active_room_id_key(), roomId)
|
|
332
|
+ lib_battle_redis:sismember(_get_active_room_id_key(), roomId)
|
333
|
333
|
return false
|
334
|
334
|
end
|
335
|
335
|
local status = redisBattleUtil.hget_int(key, "status")
|
|
@@ -340,7 +340,7 @@ function root:destroy_room(roomId)
|
340
|
340
|
-- 删除房间信息
|
341
|
341
|
lib_battle_redis:del(key)
|
342
|
342
|
-- 从活跃房间集合删除
|
343
|
|
- lib_battle_redis:sismerber(_get_active_room_id_key(), roomId)
|
|
343
|
+ lib_battle_redis:sismember(_get_active_room_id_key(), roomId)
|
344
|
344
|
return true
|
345
|
345
|
end
|
346
|
346
|
-- 是否等待开战结束
|
|
@@ -397,7 +397,7 @@ function root:start_battle(roomId)
|
397
|
397
|
local isExist = lib_battle_redis:exists(key)
|
398
|
398
|
if not isExist then
|
399
|
399
|
-- 从活跃房间集合删除
|
400
|
|
- lib_battle_redis:sismerber(_get_active_room_id_key(), roomId)
|
|
400
|
+ lib_battle_redis:sismember(_get_active_room_id_key(), roomId)
|
401
|
401
|
return false
|
402
|
402
|
end
|
403
|
403
|
-- 更新状态
|
|
@@ -493,7 +493,7 @@ function root:start_battle(roomId)
|
493
|
493
|
-- 删除房间信息
|
494
|
494
|
lib_battle_redis:del(key)
|
495
|
495
|
-- 从活跃房间集合删除
|
496
|
|
- lib_battle_redis:sismerber(_get_active_room_id_key(), roomId)
|
|
496
|
+ lib_battle_redis:sismember(_get_active_room_id_key(), roomId)
|
497
|
497
|
-- 通知在线玩家 - 销毁房间
|
498
|
498
|
nodeMgr.broadcast_proto_notify("on_room_destroy", {roomId = roomId})
|
499
|
499
|
end
|