| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #-------------------------------------------------------------------------------  | 
| #  | 
| ##@package GM.Commands.Assist  | 
| #  | 
| # @todo:ÏÔʾµ±Ç°ÐÖúÁÐ±í  | 
| # @author hxp  | 
| # @date 2019-12-06  | 
| # @version 1.0  | 
| #  | 
| # ÏêϸÃèÊö: ÏÔʾµ±Ç°ÐÖúÁÐ±í  | 
| #  | 
| #-------------------------------------------------------------------------------  | 
| #"""Version = 2019-12-06 21:00"""  | 
| #-------------------------------------------------------------------------------  | 
|   | 
| import GameWorld  | 
| import PyDataManager  | 
|   | 
| #---------------------------------------------------------------------  | 
| #È«¾Ö±äÁ¿  | 
| #---------------------------------------------------------------------  | 
|   | 
| #---------------------------------------------------------------------  | 
| #Â߼ʵÏÖ  | 
| ## Ö´ÐÐÂß¼  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param gmList [cmdIndex gmAccID msg]  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer, gmList):  | 
|       | 
|     isShowThanks = gmList[0] if len(gmList) > 0 else 0  | 
|     assistMgr = PyDataManager.GetPlayerAssistPyManager()  | 
|     GameWorld.Log("---------- µ±Ç°×ÜÐÖúÌõÊý: %s" % len(assistMgr.allAssistDict))  | 
|     for assist in assistMgr.allAssistDict.values():  | 
|         GameWorld.DebugLog("%s" % assist.outputString())  | 
|         GameWorld.DebugLog("IsSaveDB=%s,ObjID=%s,AssistType=%s,AssistPlayerIDList=%s" % (assist.IsSaveDB, assist.ObjID, assist.AssistType, assist.AssistPlayerIDList))  | 
|         GameWorld.DebugLog("--- ")  | 
|           | 
|     GameWorld.DebugLog("--- ")  | 
|     for familyID, assistList in assistMgr.familyAssistDict.items():  | 
|         GameWorld.DebugLog("ÏÉÃËÐÖúÁбí: %s, ÌõÊý: %s" % (familyID, len(assistList)))  | 
|         for assist in assistList:  | 
|             GameWorld.DebugLog("    %s" % assist.GUID)  | 
|           | 
|     GameWorld.DebugLog("--- ")  | 
|     for playerID, assistList in assistMgr.playerNoSaveDBAssistDict.items():  | 
|         GameWorld.DebugLog("Íæ¼ÒÐÖúÁбí: %s, ÌõÊý: %s" % (playerID, len(assistList)))  | 
|         for assist in assistList:  | 
|             GameWorld.DebugLog("    %s" % assist.GUID)  | 
|           | 
|     GameWorld.DebugLog("--- ")  | 
|     for playerID, assist in assistMgr.playerAssistingDict.items():  | 
|         GameWorld.DebugLog("Íæ¼ÒÐÖúÖеÄ: %s, %s" % (playerID, assist.GUID))  | 
|           | 
|     GameWorld.DebugLog("-----------------------------------------")  | 
|     if not isShowThanks:  | 
|         return  | 
|       | 
|     assistThanksMgr = PyDataManager.GetPlayerAssistThanksPyManager()  | 
|     GameWorld.Log("---------- Î´Íê½á×ܸÐлÌõÊý: %s" % len(assistThanksMgr.allAssistThanksList))  | 
|     for playerID, thanksList in assistThanksMgr.playerThanksDict.items():  | 
|         GameWorld.DebugLog("--- Íæ¼Òδ·¢Ë͸ÐлÊý: %s, %s" % (playerID, len(thanksList)))  | 
|         for i, thanks in enumerate(thanksList):  | 
|             GameWorld.DebugLog("    %s itemID=%s,map(%s,%s,%s), %s %s" % (i, thanks.ItemID, thanks.MapID, thanks.LineID, thanks.NPCID, thanks.TimeStr, thanks.GUID), thanks.PlayerID)  | 
|             GameWorld.DebugLog("        ThanksState=%s, %s" % (thanks.ThanksState, thanks.AssistPlayerDict), thanks.PlayerID)  | 
|               | 
|     for playerID, thanksList in assistThanksMgr.assistPlayerThanksDict.items():  | 
|         GameWorld.DebugLog("--- Íæ¼Òδ½ÓÊÕ¸ÐлÊý: %s, %s" % (playerID, len(thanksList)))  | 
|         for i, thanks in enumerate(thanksList):  | 
|             GameWorld.DebugLog("    %s itemID=%s,map(%s,%s,%s), %s %s" % (i, thanks.ItemID, thanks.MapID, thanks.LineID, thanks.NPCID, thanks.TimeStr, thanks.GUID), thanks.PlayerID)  | 
|             GameWorld.DebugLog("        ThanksState=%s, %s" % (thanks.ThanksState, thanks.AssistPlayerDict), thanks.PlayerID)  | 
|                       | 
|     GameWorld.DebugLog("-----------------------------------------")  | 
|     return  | 
|   |