| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GM.Commands.ClearSuccess  | 
| #  | 
| # @todo:ÖØÖóɾÍÊý¾Ý  | 
| # @author hxp  | 
| # @date 2014-11-13  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ÖØÖóɾÍÊý¾Ý  | 
| #  | 
| #---------------------------------------------------------------------  | 
| """Version = 2014-11-13 20:30"""  | 
|   | 
| import ShareDefine  | 
| import ChConfig  | 
| import PlayerSuccess  | 
| import GameWorld  | 
|   | 
| #Â߼ʵÏÖ  | 
| ## GMÃüÁîÖ´ÐÐÈë¿Ú  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param msgList ²ÎÊýÁбí [npcID]  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer, msgList):  | 
|     for succType in ShareDefine.SuccessTypeList:  | 
|         succDataList = PlayerSuccess.GetSuccDataMng().GetSuccDataByType(succType)  | 
|         if not succDataList:  | 
|             continue  | 
|               | 
|         for succDataObj in succDataList:  | 
|             succID = succDataObj.succID  | 
|             PlayerSuccess.SetSuccHasGot(curPlayer, succID, False)  | 
|             # ÖØÖøóɾÍÍê³Éʱ¼ä  | 
|             PlayerSuccess.SetSuccFinish(curPlayer, succID, False)  | 
|               | 
|             lastDayKey = ChConfig.Def_PDict_Success_LastDay % (succID)  | 
|             PlayerSuccess.SetPDictValue(curPlayer, lastDayKey, 0)  | 
|   | 
|             PlayerSuccess.SetSuccFinishValue(curPlayer, succType, succDataObj.condition, 0)  | 
|       | 
|     | 
|     # ÀÏÍæ¼ÒÉÏÏß¼ì²éÇé¿ö  | 
|     PlayerSuccess.SetPDictValue(curPlayer, ChConfig.Def_PDict_Success_CheckVersion, 0)  | 
|     # Í¬²½³É¾ÍÐÅÏ¢  | 
|     PlayerSuccess.Sync_SuccessInfo(curPlayer, [], True)  | 
|     # Í¬²½³É¾ÍÁì½±¼Ç¼  | 
|     PlayerSuccess.Sync_SuccTypeIndexAwardRecord(curPlayer, [], True)  | 
|     GameWorld.DebugAnswer(curPlayer, "OK!")  | 
|     return  | 
|   |