From 5b48407be93e85ebf82ccc8ff13e9f4c561195c4 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 16 四月 2021 14:14:37 +0800
Subject: [PATCH] 8906 【主干】【BT2】【后端】线下单笔充值活动逻辑调整(支持三种领奖模式设定;0-向下兼容,1-匹配最高档,2-精确匹配档次)
---
ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_ForbidTalk.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_ForbidTalk.py b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_ForbidTalk.py
index 0b082f6..4a16f71 100644
--- a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_ForbidTalk.py
+++ b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_ForbidTalk.py
@@ -92,17 +92,23 @@
if not loadOK:
return GMCommon.Def_NoTag, ''
+ forbidDevice = gmCmdDict.get("forbidDevice", '')
+ forbidType = GMCommon.Def_PysForbidTalkDevice if forbidDevice else GMCommon.Def_PysForbidTalk
# 玩家账号已禁
- if (dbPlayer.AccState & pow(2, GMCommon.Def_PysForbidTalk)) > 0:
+ if (dbPlayer.AccState & pow(2, forbidType)) > 0:
return GMCommon.Def_NoNeed, ''
# 设置玩家账号状态
- dbPlayer.AccState = dbPlayer.AccState|pow(2, GMCommon.Def_PysForbidTalk)
+ dbPlayer.AccState = dbPlayer.AccState|pow(2, forbidType)
+ if forbidType == GMCommon.Def_PysForbidTalkDevice:
+ 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_ForbidTalk: playerAccID=%s,forbidType=%s,AccState=%s" % (playerAccID, forbidType, dbPlayer.AccState))
return GMCommon.Def_Success, ''
--
Gitblit v1.8.0