From 906b770f36e320a504d33c970f1f8fb85674e7d5 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 21 一月 2025 17:09:06 +0800
Subject: [PATCH] 10382 【后台】称号管理支持升星(支持升星、设置星级,支持离线设置;发放代币、后台充值、头像管理增加离线操作支持;)

---
 ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py
index 55c499a..e41df48 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/GMT_Face.py
@@ -18,6 +18,7 @@
 import GMCommon
 import ChConfig
 import GameWorld
+import GMShell
 
 ## 执行逻辑
 #  @param curPlayer 当前玩家
@@ -52,23 +53,25 @@
         return
     
     if not tagPlayer:
-        GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_PlayerOfLine)
-#        # 玩家不在线,先记录,等玩家上线后处理
-#        GMShell.AddOfflinePlayerGMTInfo(orderId, queryType, playerFind, gmCmdDict)
+        #GMCommon.GMCommandResult(orderId, gmCmdDict, GMCommon.Def_PlayerOfLine)
+        # 玩家不在线,先记录,等玩家上线后处理
+        GMShell.AddOfflinePlayerGMTInfo(orderId, queryType, playerFind, gmCmdDict)
         return
     
     isOnlineGMT = True # 是否是在线接收的GM工具命令
     GMCommon.GMTool_MapServer_Query(queryType, orderId, playerFind, gmCmdDict, "GMTFace", [orderId, isOnlineGMT, faceType, opID, expireTime, opType], False)
     return
 
-#def OnOfflineGMTInfo(curPlayer, tagMapID, gmCmdDict):
-#    orderId = gmCmdDict.get('orderId', '')
-#    titleID = GameWorld.ToIntDef(gmCmdDict.get('titleID', ''), 0)
-#    expireTime = GameWorld.ToIntDef(gmCmdDict.get('expireTime', ''), 0)
-#    isOnlineGMT = False # 是否是在线接收的GM工具命令
-#    cmdStr = str([orderId, isOnlineGMT, titleID, expireTime])
-#    GameWorld.GetPlayerManager().MapServer_QueryPlayer(0, 0, curPlayer.GetPlayerID(), tagMapID, 'GMTAddTitle',
-#                                                       cmdStr, len(cmdStr), curPlayer.GetRouteServerIndex())
-#    return
+def OnOfflineGMTInfo(curPlayer, tagMapID, gmCmdDict):
+    orderId = gmCmdDict.get('orderId', '')
+    opID = GameWorld.ToIntDef(gmCmdDict.get('opID', ''), 0)
+    expireTime = GameWorld.ToIntDef(gmCmdDict.get('expireTime', ''), None)
+    faceType = gmCmdDict.get('faceType', '')
+    opType = gmCmdDict.get('opType', '')
+    isOnlineGMT = False # 是否是在线接收的GM工具命令
+    cmdStr = str([orderId, isOnlineGMT, faceType, opID, expireTime, opType])
+    GameWorld.GetPlayerManager().MapServer_QueryPlayer(0, 0, curPlayer.GetPlayerID(), tagMapID, 'GMTFace',
+                                                       cmdStr, len(cmdStr), curPlayer.GetRouteServerIndex())
+    return
 
 

--
Gitblit v1.8.0