From ec68dabc97521a7706344e7d038e9f08462f4fe8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 16 十二月 2025 10:26:34 +0800
Subject: [PATCH] 16 卡牌服务端(删除多余备档报错防范;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
index 93c6f86..2420dbf 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
@@ -30,9 +30,9 @@
 import IPY_GameWorld
 import ItemControler
 import GameFuncComm
+import PlayerTask
 import DBDataMgr
 import DirtyList
-import ObjPool
 
 import random
 import time
@@ -465,6 +465,7 @@
     familyMgr.DelPlayerReqJoinFamilyIDAll(curPlayer.GetPlayerID())
     Sync_RequestAddFamilyInfo(curPlayer)
     PlayerFamilyTaofa.OnPlayerEnterFamily(curPlayer)
+    PlayerTask.UpdTaskValue(curPlayer, ChConfig.TaskType_ReqOrJoinFamily)
     return
 
 def __OnLeaveFamily(curPlayer, isVoluntarily, tick):
@@ -661,6 +662,7 @@
     
     # 申请加入
     if requestType == 0:
+        PlayerTask.AddTaskValue(curPlayer, ChConfig.TaskType_ReqOrJoinFamily, 1)
         if not tagFamilyID:
             AutoJoinFamily(curPlayer)
         else:
@@ -1524,7 +1526,7 @@
         donateCntList.append(donateCnt)
     if not donateCntList:
         return
-    clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCDonateCntInfo)
+    clientPack = ChPyNetSendPack.tagSCDonateCntInfo()
     clientPack.DonateCntList = donateCntList
     clientPack.Count = len(clientPack.DonateCntList)
     NetPackCommon.SendFakePack(curPlayer, clientPack)

--
Gitblit v1.8.0