From 2be15cca071335ed92680027b3722d2a8d1ce57b Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 23 二月 2024 16:22:03 +0800 Subject: [PATCH] 9802 9762 【BT9】【后端】藏宝阁修改(背包计算转化物品占用格子数逻辑优化;开宝箱计算获得物品占用格子数逻辑优化;) --- ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_UnForbidTalk.py | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_UnForbidTalk.py b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_UnForbidTalk.py index ef8e88a..1e545a8 100644 --- a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_UnForbidTalk.py +++ b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_UnForbidTalk.py @@ -94,17 +94,23 @@ if not loadOK: return GMCommon.Def_NoTag, '' + unForbidDevice = gmCmdDict.get("unForbidDevice", '') + unForbidType = GMCommon.Def_PysForbidTalkDevice if unForbidDevice else GMCommon.Def_PysForbidTalk # 玩家账号正常 - if (dbPlayer.AccState & pow(2, GMCommon.Def_PysForbidTalk)) <= 0: + if (dbPlayer.AccState & pow(2, unForbidType)) <= 0: return GMCommon.Def_NoNeed, '' # 设置玩家账号状态 - dbPlayer.AccState = dbPlayer.AccState ^ pow(2, GMCommon.Def_PysForbidTalk) + dbPlayer.AccState = dbPlayer.AccState ^ pow(2, unForbidType) + if unForbidType == GMCommon.Def_PysForbidTalkDevice and (dbPlayer.AccState & pow(2, GMCommon.Def_PysForbidTalk)): + dbPlayer.AccState = dbPlayer.AccState ^ pow(2, GMCommon.Def_PysForbidTalk) + dbPlayer.ExAttr17 = dbPlayer.AccState dbPlayer.adoUpdateC(collection) - + # 记录流向 dataDic = {"PlayerID":dbPlayer.PlayerID, 'AccID':playerAccID} GMCommon.SendEventPack(gmCmdDict.get(GMCommon.Def_GMKey_Type, ''), dataDic) + mylog.info("GMT_UnForbidTalk: playerAccID=%s,unForbidType=%s,AccState=%s" % (playerAccID, unForbidType, dbPlayer.AccState)) return GMCommon.Def_Success, '' -- Gitblit v1.8.0