From f385c5bca00b2a5f2bcc29b8d040a80b34762394 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 21 一月 2025 17:07:22 +0800 Subject: [PATCH] 10382 【后台】称号管理支持升星(支持升星、设置星级,支持离线设置;发放代币、后台充值、头像管理增加离线操作支持;) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerStore.py | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerStore.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerStore.py index 551d2aa..547c164 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerStore.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerStore.py @@ -95,18 +95,16 @@ return -def ResetFlashSaleBuyCnt(ipyData, dayIndex, state): +def ResetFlashSaleBuyCnt(ipyData): #重置限时抢购商店全服购买次数 - if state == 0: - return dayShopRangeDict = ipyData.GetShopTypeList() resetTypeList = [] for shopTypeList in dayShopRangeDict.values(): - dayShopList = shopTypeList[dayIndex] if dayIndex < len(shopTypeList) else shopTypeList[-1] - shopType = dayShopList[state-1] if state-1 < len(dayShopList) else dayShopList[-1] - if shopType not in resetTypeList: - resetTypeList.append(shopType) + for dayShopList in shopTypeList: + for shopType in dayShopList: + if shopType not in resetTypeList: + resetTypeList.append(shopType) if resetTypeList: DoResetStoreServerBuyCnt(resetTypeList) return -- Gitblit v1.8.0