| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GM.Commands.SetBossTime  | 
| #  | 
| # @todo:ÉèÖÃBOSSË¢ÐÂʱ¼ä  | 
| # @author xdh  | 
| # @date 2017-05-16  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ÉèÖÃBOSSË¢ÐÂʱ¼ä  | 
| #  | 
| #---------------------------------------------------------------------  | 
| import GameWorldBoss  | 
| import GameWorld  | 
| """Version = 2017-05-16 15:00"""  | 
|   | 
| #---------------------------------------------------------------------  | 
| ## Ö´ÐÐÂß¼  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param cmdList ²ÎÊý  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer, cmdList):  | 
|       | 
|     if len(cmdList) != 2:  | 
|         return  | 
|       | 
|     bossid = cmdList[0]  | 
|     #ÔÚÏßÈËÊý  | 
|     onlineCnt = cmdList[1]  | 
|     GameWorldBoss.SetBossOnlineHeroCnt(bossid, onlineCnt)  | 
|     GameWorldBoss.SetBossRefreshTime(bossid)  | 
|     GameWorldBoss.Sync_BossInfo(curPlayer)  | 
|     GameWorld.DebugAnswer(curPlayer, 'ÉèÖÃBOSSË¢ÐÂʱ¼ä, bossid:%s, onlineCnt:%s' % (bossid, onlineCnt))  | 
|     return  | 
|   |