| New file |
| | |
| | | #!/usr/bin/python
|
| | | # -*- coding: GBK -*-
|
| | | #-------------------------------------------------------------------------------
|
| | | #
|
| | | ##@package PyMongoDB.GMToolLogicProcess.Commands.GMT_MediaCard
|
| | | #
|
| | | # @todo:GM工具命令 - 媒体卡
|
| | | # @author hxp
|
| | | # @date 2025-12-05
|
| | | # @version 1.0
|
| | | #
|
| | | # 详细描述: GM工具命令 - 媒体卡,现在已直接使用邮件发放奖励,该命令目前仅用于使用失败的提示用
|
| | | #
|
| | | #-------------------------------------------------------------------------------
|
| | | #"""Version = 2025-12-05 15:30"""
|
| | | #-------------------------------------------------------------------------------
|
| | |
|
| | | import GMCommon
|
| | | from Player import (PlayerControl)
|
| | |
|
| | | ## 收到gm命令执行
|
| | | # @param gmCmdDict:gm命令字典
|
| | | # @return None |
| | | def OnExec(gmCmdDict):
|
| | | |
| | | from GMToolLogicProcess import ProjSpecialProcess
|
| | | Result, curPlayer = ProjSpecialProcess.GMCmdPlayerValidation(gmCmdDict, False)
|
| | | if Result != GMCommon.Def_Success:
|
| | | return Result
|
| | | if not curPlayer:
|
| | | # 玩家不在线,仅系统提示用,可不处理
|
| | | return Result
|
| | | |
| | | notifyMsg = gmCmdDict.get('notifyMsg', '')
|
| | | if notifyMsg:
|
| | | PlayerControl.NotifyCode(curPlayer, notifyMsg)
|
| | | |
| | | return GMCommon.Def_Success
|
| | | |