From f385c5bca00b2a5f2bcc29b8d040a80b34762394 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 21 一月 2025 17:07:22 +0800 Subject: [PATCH] 10382 【后台】称号管理支持升星(支持升星、设置星级,支持离线设置;发放代币、后台充值、头像管理增加离线操作支持;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTAddTitle.py | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTAddTitle.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTAddTitle.py index 636d4ea..e0f158d 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTAddTitle.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTAddTitle.py @@ -19,6 +19,7 @@ import DataRecordPack import GMCommon import PlayerDienstgrad +import ChConfig #--------------------------------------------------------------------- #全局变量 @@ -39,22 +40,31 @@ return Result = GMCommon.Def_Success - orderId, isOnlineGMT, titleID, expireTime, opType = packCMDList + orderId, isOnlineGMT, titleID, expireTime, opType, setValue = packCMDList + errorMsg = "" isOK = False if opType == "add": isOK = PlayerDienstgrad.PlayerAddDienstgrad(curPlayer, titleID, expireTime=expireTime) elif opType == "del": isOK = PlayerDienstgrad.PlayerDelDienstgrad(curPlayer, titleID) + elif opType == "starUp": + isOK, errorMsg = PlayerDienstgrad.GMSetTitleStar(curPlayer, titleID) + elif opType == "setStar": + isOK, errorMsg = PlayerDienstgrad.GMSetTitleStar(curPlayer, titleID, setValue) if not isOK: - errorMsg = "%s fail! Please check that the ID(%s) is correct." % (opType, titleID) + if errorMsg: + errorMsg = "%s fail! %s" % (opType, errorMsg) + else: + errorMsg = "%s fail! Please check that the ID(%s) is correct." % (opType, titleID) GameWorld.Log("GMT_AddTitle, errorMsg=%s" % errorMsg, curPlayer.GetPlayerID()) resultMsg = str([orderId, errorMsg, 'GMT_AddTitle', GMCommon.Def_Unknow]) GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'GMToolResult', resultMsg, len(resultMsg)) return - resultDict = {"titleID":titleID, "expireTime":expireTime, "isOnlineGMT":isOnlineGMT, "opType":opType} + curStar = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TitleStar % titleID) + resultDict = {"titleID":titleID, "expireTime":expireTime, "isOnlineGMT":isOnlineGMT, "opType":opType, "star":curStar} GameWorld.Log("GMT_AddTitle, isOnlineGMT=%s,resultDict=%s" % (isOnlineGMT, resultDict), curPlayer.GetPlayerID()) #流向 记录 DataRecordPack.DR_ToolGMOperate(query_ID, curPlayer.GetPlayerName(), curPlayer.GetAccID(), 'GMT_AddTitle', resultDict) -- Gitblit v1.8.0