| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GM.Commands.SetOnlineTime  | 
| #  | 
| # @todo:ÉèÖÃÔÚÏßʱ¼ä  | 
| # @author ljd  | 
| # @date 2015-06-10 10:10  | 
| # @version 1.0  | 
| #  | 
| #  | 
| # ÏêϸÃèÊö: ÉèÖÃÔÚÏßʱ¼ä  | 
| #  | 
| #---------------------------------------------------------------------  | 
| #"""Version = 2015-06-10 10:10"""  | 
| #---------------------------------------------------------------------  | 
|   | 
| import ChConfig  | 
| import PlayerOnlinePrize  | 
| import PlayerControl  | 
| import GameWorld  | 
|   | 
| ## Â߼ʵÏÖ  | 
| ## GMÃüÁîÖ´ÐÐÈë¿Ú  | 
| #  @param curPlayer  | 
| #  @param cmdList ²ÎÊýÁÐ±í  | 
| #  @return None  | 
| def OnExec(curPlayer, cmdList):  | 
|     if len(cmdList) < 1:  | 
|         GameWorld.DebugAnswer(curPlayer, 'µ±Ç°ÔÚÏßʱ¼ä Ê±¼ä = %s'%PlayerOnlinePrize.GetOnlineTime(curPlayer))  | 
|         GameWorld.DebugAnswer(curPlayer, 'SetOnlineTime Ê±¼äms')  | 
|         return  | 
|       | 
|     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_DayOnlineTime, cmdList[0])  | 
|     PlayerOnlinePrize.SendOnlinePrizeInfo(curPlayer)  | 
|     GameWorld.DebugAnswer(curPlayer, 'SetOnlineTime OK!')  | 
|     return  |