|  |  |  | 
|---|
|  |  |  | import PlayerFamily | 
|---|
|  |  |  | import IPY_GameServer | 
|---|
|  |  |  | import ShareDefine | 
|---|
|  |  |  | import time | 
|---|
|  |  |  | import ChConfig | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import time | 
|---|
|  |  |  | import json | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ViewCacheMgr = GameWorld.GameWorldData.GetPlayerViewCacheMgr() | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) | 
|---|
|  |  |  | NetPackCommon.SendFakePack(curPlayer, answerPack) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def OnPlayerLeaveFamily(playerID): | 
|---|
|  |  |  | GameWorld.DebugLog("ViewCache->OnPlayerLeaveFamily", playerID) | 
|---|
|  |  |  | curCache = ViewCacheMgr.FindCache(playerID) | 
|---|
|  |  |  | if not curCache: | 
|---|
|  |  |  | return | 
|---|
|  |  |  | PropData = eval(curCache.GetPropData()) | 
|---|
|  |  |  | PropData["FamilyID"] = 0 | 
|---|
|  |  |  | PropData["FamilyName"] = "" | 
|---|
|  |  |  | playerLV = PropData["LV"] | 
|---|
|  |  |  |  | 
|---|
|  |  |  | PropData = json.dumps(PropData, ensure_ascii=False) | 
|---|
|  |  |  | ItemData = curCache.GetItemData() | 
|---|
|  |  |  | PlusData = curCache.GetPlusData() | 
|---|
|  |  |  | UpdatePlayerCache(playerID, PropData, ItemData, PlusData, True if playerLV > 150 else False) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|