From 6c413acde628cb24547ccad17e3c6359c86964cc Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 10 二月 2026 10:00:38 +0800
Subject: [PATCH] 66 【公会】基础主体-服务端(优化成员基础信息变更时同步,除战力同步CD60秒,其他属性CD2秒;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index 53e2272..6ad9ddc 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -779,11 +779,16 @@
# --------------------------------------------------------------
+ syncCD = 2000
+ if refreshType == IPY_PlayerDefine.CDBPlayerRefresh_FightPower:
+ syncCD = 60 * 1000
+
# 同步给相关跨服
tick = GameWorld.GetGameWorld().GetTick()
lastSyncTick = curPlayer.GetDictByKey("S2C_PlayerBaseInfo")
- if lastSyncTick and (tick - lastSyncTick) <= 2000:
+ if lastSyncTick and (tick - lastSyncTick) <= syncCD:
# 短时间内只同步一次
+ #GameWorld.DebugLog("同步基础属性CD中! refreshType=%s,syncCD=%s,pass=%s" % (refreshType, syncCD, tick - lastSyncTick))
return
curPlayer.SetDict("S2C_PlayerBaseInfo", tick)
--
Gitblit v1.8.0